]> git.mjollnir.org Git - moodle.git/commit
made some changes so that if a user has any roles assigned in context_module or conte...
authortoyomoyo <toyomoyo>
Fri, 16 Feb 2007 07:57:19 +0000 (07:57 +0000)
committertoyomoyo <toyomoyo>
Fri, 16 Feb 2007 07:57:19 +0000 (07:57 +0000)
commit217a8ee95062b13df9ee70bffaddd246ee469bcb
tree9e4b31c68dba4d6eca91025c9b71b21b678a3adf
parent12ce9ea2ee73a985b4b62883f0ad3ea504405317
made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers.
13 files changed:
blocks/moodleblock.class.php
course/format/lams/format.php
course/format/topics/format.php
course/format/weeks/format.php
course/format/weekscss/format.php
course/lib.php
course/mod.php
course/modedit.php
course/view.php
lib/blocklib.php
lib/moodlelib.php
lib/pagelib.php
lib/weblib.php