ELIS defines six custom context levels. With the overhaul of the Moodle context API in 2.2, we tried to do this as a completely separate group of classes and not touch any Moodle core code. Unfortunately we did end up having to modify some Moodle code for this to work.
Documentation link
NOTE: links to files are a link to the patch file in the RL Github repository
- /admin/roles/lib.php
- Ensure that code defining ELIS custom context levels is loaded for role definition table
- /admin/tool/unsuproles/index.php
- Ensure that code defining ELIS custom context levels is loaded for checking unsupported role assignments
- /lib/accesslib.php
- Ensure that code defining ELIS custom context levels is loaded for absolutely necessary core methods (and include ELIS contexts in get_user_access_sitewide() preloading)
- /elis/program/accesslib.php
- Defines the ELIS context levels and their associated class implementation
- duplicates
-
MDL-20045 Add unofficial support for custom context levels
-
- Closed
-