From 4b7aaf4025ef1f7a0d4bbffd8265fd9f210da092 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 17 Sep 2006 21:03:35 +0000 Subject: [PATCH] added new capability 'moodle/course:managemetacourses' --- lib/db/access.php | 14 ++++++++++++++ version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/db/access.php b/lib/db/access.php index bc45a2307b9..6975043f94c 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -562,6 +562,20 @@ $moodle_capabilities = array( ) ), + 'moodle/course:managemetacourses' => array( + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'guest' => CAP_PREVENT, + 'student' => CAP_PREVENT, + 'teacher' => CAP_PREVENT, + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), + 'moodle/course:activityvisibility' => array( 'captype' => 'write', diff --git a/version.php b/version.php index f01423f6705..3797ebc688a 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2006091701; // YYYYMMDD = date + $version = 2006091702; // YYYYMMDD = date // XY = increments within a single day $release = '1.7 dev'; // Human-friendly version name