Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
2d3747c2
Commit
2d3747c2
authored
Feb 21, 2019
by
Francois Gannaz
Browse files
fix the declaration of capabilities
parent
a3cafb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/access.php
View file @
2d3747c2
...
...
@@ -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_
MODUL
E
,
'contextlevel'
=>
CONTEXT_
COURS
E
,
'archetypes'
=>
[
'student'
=>
CAP_PREVENT
,
'editingteacher'
=>
CAP_ALLOW
,
'manager'
=>
CAP_ALLOW
,
],
'clonepermissionsfrom'
=>
'moodle/course:
update
'
,
'clonepermissionsfrom'
=>
'moodle/course:
manageactivities
'
,
],
];
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment