From cd79117d49b2dd845d2572dd5d36f2c3b9909b7e Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 24 Jan 2013 15:59:52 +0100 Subject: Add required capability addinstance --- sqlbox/db/access.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sqlbox/db') 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', -- cgit