Commit 2d3747c2 authored by Francois Gannaz's avatar Francois Gannaz
Browse files

fix the declaration of capabilities

parent a3cafb31
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$capabilities = [ $capabilities = [
'mod/labnbook:view' => [ 'mod/labnbook:view' => [
'captype' => 'view', 'captype' => 'view',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
...@@ -36,14 +35,14 @@ $capabilities = [ ...@@ -36,14 +35,14 @@ $capabilities = [
], ],
'clonepermissionsfrom' => 'moodle/course:view', 'clonepermissionsfrom' => 'moodle/course:view',
], ],
'mod/labnbook:addinstance' => [
'mod/labnbook:update' => [ 'riskbitmask' => RISK_XSS,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_COURSE,
'archetypes' => [ 'archetypes' => [
'student' => CAP_PREVENT,
'editingteacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW,
], ],
'clonepermissionsfrom' => 'moodle/course:update', 'clonepermissionsfrom' => 'moodle/course:manageactivities',
], ],
]; ];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment