-
Task
-
Resolution: Fixed
-
Minor
-
3.5
-
MOODLE_35_STABLE
-
MOODLE_36_STABLE
-
MDL-62065-master -
While working on MDL-61899 we detected that, actually, there are 2 accesslib methods to fetch the roles used at an exact context:
- get_roles_on_exact_context()
- get_roles_with_assignment_on_context()
In the other side, for fetch all the roles used in a context (including parents) is:
- get_roles_used_in_context()
Right now there isn't any use in core of any of the "exact" functions.
This is about to decide what to do:
1) Deprecate the 2 "exact context" functions and add the "including parents" one to also support "exact context"
2) Deprecate one of the 2 "exact context", leaving the other. If so, I'd propose to deprecate the get_roles_with_assignment_on_context() because it's less clear.