From 20dd4cf5a1e3d02684121c7848f967eac57eabdb Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 21 Sep 2006 07:44:53 +0000 Subject: [PATCH] Added new capability to switch roles (replaces old student view) --- 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 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 -- 2.39.5