diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-24 15:59:52 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-24 16:14:00 +0100 |
commit | cd79117d49b2dd845d2572dd5d36f2c3b9909b7e (patch) | |
tree | 09d60bb44d7ca3ad8375399257ce72e94f542556 /sqlbox/db | |
parent | 60fbd00792b1fce24eb33cbc01f8b8cdf43a7696 (diff) | |
download | sqltutor-plugin-cd79117d49b2dd845d2572dd5d36f2c3b9909b7e.tar.gz sqltutor-plugin-cd79117d49b2dd845d2572dd5d36f2c3b9909b7e.tar.bz2 sqltutor-plugin-cd79117d49b2dd845d2572dd5d36f2c3b9909b7e.zip |
Add required capability addinstance
Diffstat (limited to 'sqlbox/db')
-rw-r--r-- | sqlbox/db/access.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sqlbox/db/access.php b/sqlbox/db/access.php index 5549ae4..12f678c 100644 --- a/sqlbox/db/access.php +++ b/sqlbox/db/access.php @@ -50,6 +50,18 @@ defined('MOODLE_INTERNAL') || die(); $capabilities = array( + 'mod/sqlbox:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + /***************************** remove these comment marks and modify the code as needed 'mod/sqlbox:view' => array( 'captype' => 'read', |