MDL-14627 new mod/page:view capability
[moodle.git] / mod / page / db / access.php
index 6c773e6..debd91f 100644 (file)
 defined('MOODLE_INTERNAL') || die;
 
 $capabilities = array(
+    'mod/page:view' => array(
+        'captype' => 'read',
+        'contextlevel' => CONTEXT_MODULE,
+        'archetypes' => array(
+            'guest' => CAP_ALLOW,
+            'user' => CAP_ALLOW,
+        )
+    ),
+
 /* TODO: review public portfolio API first!
     'mod/page:portfolioexport' => array(