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

fix the declaration of capabilities

parent a3cafb31
......@@ -26,7 +26,6 @@
defined('MOODLE_INTERNAL') || die();
$capabilities = [
'mod/labnbook:view' => [
'captype' => 'view',
'contextlevel' => CONTEXT_MODULE,
......@@ -36,14 +35,14 @@ $capabilities = [
],
'clonepermissionsfrom' => 'moodle/course:view',
],
'mod/labnbook:update' => [
'mod/labnbook:addinstance' => [
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'student' => CAP_PREVENT,
'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