From: toyomoyo Date: Thu, 15 Mar 2007 04:23:21 +0000 (+0000) Subject: merged fix for MDL-7939, teachers, editting-teachers and course creators should see... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2f5ab42bc071b0460e23773eae18b8d1cab65de8;p=moodle.git merged fix for MDL-7939, teachers, editting-teachers and course creators should see hidden courses --- diff --git a/lib/db/access.php b/lib/db/access.php index fb70f5fd0d..c0cc92bf0a 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -502,7 +502,10 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'admin' => CAP_ALLOW + 'coursecreator' => CAP_ALLOW, + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW ) ), @@ -750,17 +753,6 @@ $moodle_capabilities = array( ) ), - 'moodle/user:editprofile' => array( - - 'riskbitmask' => RISK_SPAM, - - 'captype' => 'read', - 'contextlevel' => CONTEXT_USER, - 'legacy' => array( - 'admin' => CAP_ALLOW - ) - ), - 'moodle/question:import' => array( 'riskbitmask' => RISK_XSS,