Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9.3
-
Component/s: Roles / Access
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
I left this bug to be assigned automatically since I want the maintainer of the roles and capabilities code to take a look at the idea. I'm willing to code this though so assign the bug to me if you approve of the proposed feature addition and I can do it in the next few days.
I want to allow a new optional function in mod/modname/lib.php 'modname_get_relevant_capabilites' that returns an array of capabilities.
This is needed so that activity modules can specify additional capabilities that should appear in the in addition to the ones specifically for this module, that should be displayed in the 'Override Roles' sub tab (override.php) for a module context.
An example of extra capabilities should be overridable in the module context are question capabilities for questions that are shared in the module context. The question code tests the users permissions for what they can do with questions in the context in which the questions are shared.
For background see : http://moodle.org/mod/forum/discuss.php?d=80386
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-8524 | Roles administration improvements - META |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-15737 | skodak's list of bugs - work for tul |
|
|
|
| MDL-15340 | some small changes needed to accesslib functions to make quiz report capabilities show up properly in roles and permissions UI |
|
|
|
At a glance, this seems like a good idea. I need to think a bit more about it though ... there might be better ways to do this, such as through extra fields in the access.php files ...