From e58eca7222e9dec497845c8cdbbc6bb17d4e31b0 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 15 Sep 2006 14:39:16 +0000 Subject: [PATCH] New capability: moodle/user:viewhiddendetails --- lib/db/access.php | 16 +++++++++++++++- version.php | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/db/access.php b/lib/db/access.php index 190a785feb..abe294fdec 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -272,7 +272,7 @@ $moodle_capabilities = array( 'moodle/user:viewdetails' => array( - 'captype' => 'write', + 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( 'guest' => CAP_PREVENT, @@ -283,6 +283,20 @@ $moodle_capabilities = array( 'admin' => CAP_ALLOW ) ), + + 'moodle/user:viewhiddendetails' => 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/role:assign' => array( diff --git a/version.php b/version.php index 84b821d44b..338ddc2252 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 = 2006091400; // YYYYMMDD = date + $version = 2006091500; // YYYYMMDD = date // XY = increments within a single day $release = '1.7 dev'; // Human-friendly version name -- 2.39.5