diff --git a/blocks/rss_client/db/access.php b/blocks/rss_client/db/access.php index a04b5a02c8cee..3c67fa2cfcdd8 100644 --- a/blocks/rss_client/db/access.php +++ b/blocks/rss_client/db/access.php @@ -38,8 +38,6 @@ '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 @@ '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 @@ '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 @@ '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 98eeaa8f2c795..de6dc5796cd39 100644 --- a/enrol/authorize/db/access.php +++ b/enrol/authorize/db/access.php @@ -6,11 +6,6 @@ '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 defc404cb8aca..db2f2e6072c76 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -87,11 +87,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -375,11 +309,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -735,7 +586,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_COURSE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -749,9 +599,6 @@ '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 @@ '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 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -823,11 +663,6 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -855,8 +689,6 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -887,8 +718,6 @@ '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 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -915,7 +743,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_USER, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -928,8 +755,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 06305f1f642a6..0028495591a26 100644 --- a/mod/assignment/db/access.php +++ b/mod/assignment/db/access.php @@ -52,12 +52,7 @@ '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 @@ '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 4c7ebfae8d28f..202b4baa96ccb 100644 --- a/mod/chat/db/access.php +++ b/mod/chat/db/access.php @@ -40,7 +40,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,7 +53,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -68,8 +66,6 @@ '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 cbe4d0c167551..c97a321856edc 100644 --- a/mod/choice/db/access.php +++ b/mod/choice/db/access.php @@ -38,7 +38,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ '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 @@ '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 @@ '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 dfed91c8b4a6a..4be4d570237a7 100644 --- a/mod/data/db/access.php +++ b/mod/data/db/access.php @@ -38,7 +38,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,7 +53,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -70,7 +68,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -84,8 +81,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 6ae31c75d8664..12223a1d921a2 100644 --- a/mod/exercise/db/access.php +++ b/mod/exercise/db/access.php @@ -38,8 +38,6 @@ '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 @@ ); -?> \ No newline at end of file +?> diff --git a/mod/forum/db/access.php b/mod/forum/db/access.php index 724a694543195..a30e2190f9828 100644 --- a/mod/forum/db/access.php +++ b/mod/forum/db/access.php @@ -52,8 +52,6 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -84,7 +81,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -98,7 +94,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -112,8 +107,6 @@ '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 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -156,7 +146,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -170,8 +159,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 6a3254cae78e6..be881aae08bc3 100644 --- a/mod/glossary/db/access.php +++ b/mod/glossary/db/access.php @@ -40,7 +40,6 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -54,8 +53,6 @@ '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 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -98,8 +92,6 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 b7b52b6c45dc9..65f461d9fc4ac 100644 --- a/mod/hotpot/db/access.php +++ b/mod/hotpot/db/access.php @@ -38,7 +38,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ '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 @@ '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 @@ '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 @@ ); -?> \ No newline at end of file +?> diff --git a/mod/lams/db/access.php b/mod/lams/db/access.php index 9d50638f2fb0c..d229e129583ff 100644 --- a/mod/lams/db/access.php +++ b/mod/lams/db/access.php @@ -11,12 +11,7 @@ '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 @@ '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 a716a1f087880..4cb192b81a9cc 100644 --- a/mod/lesson/db/access.php +++ b/mod/lesson/db/access.php @@ -13,9 +13,6 @@ '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 @@ '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 eacce0c20e22e..b3abe03ebd116 100644 --- a/mod/quiz/db/access.php +++ b/mod/quiz/db/access.php @@ -28,12 +28,7 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 @@ '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 f8234932b101a..0ecaa8283c04e 100644 --- a/mod/scorm/db/access.php +++ b/mod/scorm/db/access.php @@ -38,8 +38,6 @@ '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 @@ '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 @@ '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 @@ '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 d589f5a278766..0327500c5bc91 100644 --- a/mod/survey/db/access.php +++ b/mod/survey/db/access.php @@ -38,7 +38,6 @@ 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -52,8 +51,6 @@ '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 @@ '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 @@ ); -?> \ No newline at end of file +?> diff --git a/mod/wiki/db/access.php b/mod/wiki/db/access.php index 13acf5b9edb1b..b12074b91eb25 100644 --- a/mod/wiki/db/access.php +++ b/mod/wiki/db/access.php @@ -13,12 +13,11 @@ '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 @@ '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 @@ '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 df1855bee4c08..7609303280089 100644 --- a/mod/workshop/db/access.php +++ b/mod/workshop/db/access.php @@ -13,12 +13,7 @@ '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 @@ 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( - 'guest' => CAP_PREVENT, - 'student' => CAP_PREVENT, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'coursecreator' => CAP_ALLOW,