From 2d5a4f255bd5fdded3cfe804fd80f9c93bd625f2 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 11 Oct 2006 06:21:58 +0000 Subject: [PATCH] Merged fixes for MDL-6907 from stable --- blocks/rss_client/db/access.php | 14 +-- enrol/authorize/db/access.php | 5 - lib/db/access.php | 214 +------------------------------- mod/assignment/db/access.php | 9 +- mod/chat/db/access.php | 4 - mod/choice/db/access.php | 7 -- mod/data/db/access.php | 22 ---- mod/exercise/db/access.php | 4 +- mod/forum/db/access.php | 27 ---- mod/glossary/db/access.php | 18 --- mod/hotpot/db/access.php | 10 +- mod/lams/db/access.php | 12 +- mod/lesson/db/access.php | 5 - mod/quiz/db/access.php | 19 +-- mod/scorm/db/access.php | 25 ++-- mod/survey/db/access.php | 7 +- mod/wiki/db/access.php | 10 +- mod/workshop/db/access.php | 9 +- 18 files changed, 20 insertions(+), 401 deletions(-) diff --git a/blocks/rss_client/db/access.php b/blocks/rss_client/db/access.php index a04b5a02c8..3c67fa2cfc 100644 --- a/blocks/rss_client/db/access.php +++ b/blocks/rss_client/db/access.php @@ -38,8 +38,6 @@ $block_rss_client_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -52,9 +50,6 @@ $block_rss_client_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -66,8 +61,6 @@ $block_rss_client_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -80,15 +73,10 @@ $block_rss_client_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ) ); -?> \ No newline at end of file +?> diff --git a/enrol/authorize/db/access.php b/enrol/authorize/db/access.php index 98eeaa8f2c..de6dc5796c 100644 --- a/enrol/authorize/db/access.php +++ b/enrol/authorize/db/access.php @@ -6,11 +6,6 @@ $enrol_authorize_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PROHIBIT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ) diff --git a/lib/db/access.php b/lib/db/access.php index defc404cb8..db2f2e6072 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -87,11 +87,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -101,11 +96,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -115,11 +105,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -131,8 +116,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -147,9 +130,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -163,9 +143,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -179,9 +156,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -193,8 +167,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -207,8 +179,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -221,9 +191,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -237,8 +204,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -253,9 +218,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -269,11 +231,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -286,11 +243,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -300,11 +252,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -316,11 +263,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -330,11 +272,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_ALLOW, - 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW ) ), @@ -346,8 +283,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -359,7 +294,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -375,11 +309,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -389,9 +318,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -403,11 +329,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -417,11 +338,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -430,8 +346,7 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => (empty($CFG->allowunenrol)) ? CAP_PREVENT : CAP_ALLOW, + 'student' => (empty($CFG->allowunenrol)) ? CAP_INHERIT : CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -443,8 +358,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -457,11 +370,7 @@ $moodle_capabilities = array( '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 ) ), @@ -471,11 +380,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSECAT, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -485,11 +389,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSECAT, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -499,11 +398,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSECAT, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -513,11 +407,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSECAT, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -529,10 +418,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW ) @@ -543,11 +428,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -559,9 +439,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -589,8 +466,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -605,8 +480,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -619,10 +492,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW ) @@ -633,10 +502,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW ) @@ -649,9 +514,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -665,8 +527,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -679,9 +539,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -693,9 +550,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -707,8 +561,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -721,7 +573,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -735,7 +586,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -749,9 +599,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -763,9 +610,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -777,9 +621,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -807,7 +648,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -823,11 +663,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -839,7 +674,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -855,8 +689,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -871,7 +703,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -887,8 +718,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -902,7 +731,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -915,7 +743,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -928,8 +755,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -944,11 +769,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -960,9 +780,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -973,9 +790,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -986,9 +800,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -1002,9 +813,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -1015,8 +823,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -1028,9 +834,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -1041,11 +844,7 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -1054,9 +853,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -1067,9 +863,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -1080,8 +873,6 @@ $moodle_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -1093,9 +884,6 @@ $moodle_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW diff --git a/mod/assignment/db/access.php b/mod/assignment/db/access.php index 06305f1f64..0028495591 100644 --- a/mod/assignment/db/access.php +++ b/mod/assignment/db/access.php @@ -52,12 +52,7 @@ $mod_assignment_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_INHERIT, - 'editingteacher' => CAP_INHERIT, - 'coursecreator' => CAP_INHERIT, - 'admin' => CAP_INHERIT + 'student' => CAP_ALLOW ) ), @@ -66,8 +61,6 @@ $mod_assignment_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/chat/db/access.php b/mod/chat/db/access.php index 4c7ebfae8d..202b4baa96 100644 --- a/mod/chat/db/access.php +++ b/mod/chat/db/access.php @@ -40,7 +40,6 @@ $mod_chat_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,7 +53,6 @@ $mod_chat_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -68,8 +66,6 @@ $mod_chat_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/choice/db/access.php b/mod/choice/db/access.php index cbe4d0c167..c97a321856 100644 --- a/mod/choice/db/access.php +++ b/mod/choice/db/access.php @@ -38,7 +38,6 @@ $mod_choice_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ $mod_choice_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -66,8 +63,6 @@ $mod_choice_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -80,8 +75,6 @@ $mod_choice_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/data/db/access.php b/mod/data/db/access.php index dfed91c8b4..4be4d57023 100644 --- a/mod/data/db/access.php +++ b/mod/data/db/access.php @@ -38,7 +38,6 @@ $mod_data_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,7 +53,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -70,7 +68,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -84,8 +81,6 @@ $mod_data_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -98,8 +93,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -112,8 +105,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -126,8 +117,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -140,8 +129,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -156,8 +143,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -170,8 +155,6 @@ $mod_data_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -184,11 +167,6 @@ $mod_data_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ) diff --git a/mod/exercise/db/access.php b/mod/exercise/db/access.php index 6ae31c75d8..12223a1d92 100644 --- a/mod/exercise/db/access.php +++ b/mod/exercise/db/access.php @@ -38,8 +38,6 @@ $mod_exercise_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -49,4 +47,4 @@ $mod_exercise_capabilities = array( ); -?> \ No newline at end of file +?> diff --git a/mod/forum/db/access.php b/mod/forum/db/access.php index 724a694543..a30e2190f9 100644 --- a/mod/forum/db/access.php +++ b/mod/forum/db/access.php @@ -52,8 +52,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -68,7 +66,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -84,7 +81,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -98,7 +94,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -112,8 +107,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -126,8 +119,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -142,7 +133,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -156,7 +146,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -170,8 +159,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -184,8 +171,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -198,8 +183,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -214,8 +197,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -228,8 +209,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -242,8 +221,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -256,8 +233,6 @@ $mod_forum_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -272,8 +247,6 @@ $mod_forum_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/glossary/db/access.php b/mod/glossary/db/access.php index 6a3254cae7..be881aae08 100644 --- a/mod/glossary/db/access.php +++ b/mod/glossary/db/access.php @@ -40,7 +40,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,8 +53,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -68,8 +65,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -84,7 +79,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -98,8 +92,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -114,8 +106,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -128,8 +118,6 @@ $mod_glossary_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -142,8 +130,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -156,8 +142,6 @@ $mod_glossary_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -170,8 +154,6 @@ $mod_glossary_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/hotpot/db/access.php b/mod/hotpot/db/access.php index b7b52b6c45..65f461d9fc 100644 --- a/mod/hotpot/db/access.php +++ b/mod/hotpot/db/access.php @@ -38,7 +38,6 @@ $mod_hotpot_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ $mod_hotpot_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -66,8 +63,6 @@ $mod_hotpot_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -80,9 +75,6 @@ $mod_hotpot_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -91,4 +83,4 @@ $mod_hotpot_capabilities = array( ); -?> \ No newline at end of file +?> diff --git a/mod/lams/db/access.php b/mod/lams/db/access.php index 9d50638f2f..d229e12958 100644 --- a/mod/lams/db/access.php +++ b/mod/lams/db/access.php @@ -11,12 +11,7 @@ $mod_lams_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'student' => CAP_ALLOW ) ), @@ -25,12 +20,9 @@ $mod_lams_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ) -); \ No newline at end of file +); diff --git a/mod/lesson/db/access.php b/mod/lesson/db/access.php index a716a1f087..4cb192b81a 100644 --- a/mod/lesson/db/access.php +++ b/mod/lesson/db/access.php @@ -13,9 +13,6 @@ $mod_lesson_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -27,8 +24,6 @@ $mod_lesson_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/quiz/db/access.php b/mod/quiz/db/access.php index eacce0c20e..b3abe03ebd 100644 --- a/mod/quiz/db/access.php +++ b/mod/quiz/db/access.php @@ -28,12 +28,7 @@ $mod_quiz_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'student' => CAP_ALLOW ) ), @@ -43,9 +38,6 @@ $mod_quiz_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW @@ -58,8 +50,6 @@ $mod_quiz_capabilities = array( 'captype' => 'write', // Only just a write. 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -73,8 +63,6 @@ $mod_quiz_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -88,8 +76,6 @@ $mod_quiz_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -103,9 +89,6 @@ $mod_quiz_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, - 'teacher' => CAP_PREVENT, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, 'admin' => CAP_ALLOW diff --git a/mod/scorm/db/access.php b/mod/scorm/db/access.php index f8234932b1..0ecaa8283c 100644 --- a/mod/scorm/db/access.php +++ b/mod/scorm/db/access.php @@ -38,8 +38,6 @@ $mod_scorm_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -52,12 +50,7 @@ $mod_scorm_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'student' => CAP_ALLOW ) ), @@ -66,12 +59,11 @@ $mod_scorm_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW ) ), @@ -80,12 +72,11 @@ $mod_scorm_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW ) ) diff --git a/mod/survey/db/access.php b/mod/survey/db/access.php index d589f5a278..0327500c5b 100644 --- a/mod/survey/db/access.php +++ b/mod/survey/db/access.php @@ -38,7 +38,6 @@ $mod_survey_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ $mod_survey_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -66,8 +63,6 @@ $mod_survey_capabilities = array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, @@ -77,4 +72,4 @@ $mod_survey_capabilities = array( ); -?> \ No newline at end of file +?> diff --git a/mod/wiki/db/access.php b/mod/wiki/db/access.php index 13acf5b9ed..b12074b91e 100644 --- a/mod/wiki/db/access.php +++ b/mod/wiki/db/access.php @@ -13,12 +13,11 @@ $mod_wiki_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'coursecreator' => CAP_ALLOW, + 'admin' => CAP_ALLOW ) ), @@ -29,11 +28,8 @@ $mod_wiki_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, - 'coursecreator' => CAP_PREVENT, 'admin' => CAP_ALLOW ) ), @@ -45,8 +41,6 @@ $mod_wiki_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, diff --git a/mod/workshop/db/access.php b/mod/workshop/db/access.php index df1855bee4..7609303280 100644 --- a/mod/workshop/db/access.php +++ b/mod/workshop/db/access.php @@ -13,12 +13,7 @@ $mod_workshop_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_ALLOW, - 'teacher' => CAP_PREVENT, - 'editingteacher' => CAP_PREVENT, - 'coursecreator' => CAP_PREVENT, - 'admin' => CAP_PREVENT + 'student' => CAP_ALLOW ) ), @@ -29,8 +24,6 @@ $mod_workshop_capabilities = array( 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW, -- 2.39.5