summaryrefslogtreecommitdiff
path: root/sqlbox/db/access.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-24 17:18:46 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-24 18:32:15 +0100
commit2df5a673112d41f2045720572fce7af74194f1fe (patch)
treeffa4408fc7092cb3574901a310e867163169599b /sqlbox/db/access.php
parent4439a7ad9912bab7e8a36fa1f81281301e43009e (diff)
downloadsqltutor-plugin-2df5a673112d41f2045720572fce7af74194f1fe.tar.gz
sqltutor-plugin-2df5a673112d41f2045720572fce7af74194f1fe.tar.bz2
sqltutor-plugin-2df5a673112d41f2045720572fce7af74194f1fe.zip
Add report of queries for a sqlbox
Diffstat (limited to 'sqlbox/db/access.php')
-rw-r--r--sqlbox/db/access.php11
1 files changed, 11 insertions, 0 deletions
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',