From: moodler Date: Thu, 21 Sep 2006 07:44:53 +0000 (+0000) Subject: Added new capability to switch roles (replaces old student view) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=20dd4cf5a1e3d02684121c7848f967eac57eabdb;p=moodle.git Added new capability to switch roles (replaces old student view) --- diff --git a/lib/db/access.php b/lib/db/access.php index 94e22bd52b..43d210a4e8 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -406,6 +406,20 @@ $moodle_capabilities = array( ) ), + 'moodle/role:switchroles' => array( + 'riskbitmask' => RISK_XSS, + 'captype' => 'read', + 'contextlevel' => CONTEXT_SYSTEM, + 'legacy' => array( + 'guest' => CAP_PREVENT, + 'student' => CAP_PREVENT, + 'teacher' => CAP_PREVENT, + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_PREVENT, + 'admin' => CAP_ALLOW + ) + ), + 'moodle/category:create' => array( 'captype' => 'write', diff --git a/version.php b/version.php index 52babca8ae..ccdc570238 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 = 2006092000; // YYYYMMDD = date + $version = 2006092100; // YYYYMMDD = date // XY = increments within a single day $release = '1.7 dev'; // Human-friendly version name