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