From 2df5a673112d41f2045720572fce7af74194f1fe Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 24 Jan 2013 17:18:46 +0100 Subject: Add report of queries for a sqlbox --- sqlbox/db/access.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sqlbox/db') diff --git a/sqlbox/db/access.php b/sqlbox/db/access.php index 12f678c..5213fc1 100644 --- a/sqlbox/db/access.php +++ b/sqlbox/db/access.php @@ -62,6 +62,17 @@ $capabilities = array( 'clonepermissionsfrom' => 'moodle/course:manageactivities' ), + 'mod/sqlbox:readqueries' => array( + + 'captype' => 'read', + 'contextlevel' => CONTEXT_MODULE, + 'archetypes' => array( + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ) + ), + /***************************** remove these comment marks and modify the code as needed 'mod/sqlbox:view' => array( 'captype' => 'read', -- cgit