From: moodler Date: Sat, 16 Sep 2006 13:56:24 +0000 (+0000) Subject: Added new capability X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=99f9cb51e0fb43a09bb20b735c9e3e25734dcfe9;p=moodle.git Added new capability moodle/role:viewhiddenassigns - for people to see hidden assignments --- diff --git a/lib/db/access.php b/lib/db/access.php index abe294fdec..bc45a2307b 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -352,6 +352,19 @@ $moodle_capabilities = array( 'admin' => CAP_ALLOW ) ), + + 'moodle/role:viewhiddenassigns' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_SYSTEM, + 'legacy' => array( + 'guest' => CAP_PREVENT, + 'student' => CAP_PREVENT, + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), 'moodle/category:create' => array( diff --git a/version.php b/version.php index 338ddc2252..d57c095d49 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 = 2006091500; // YYYYMMDD = date + $version = 2006091600; // YYYYMMDD = date // XY = increments within a single day $release = '1.7 dev'; // Human-friendly version name