moodle/admin/roles
tjhunt e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
..
allow.php switch roles: MDL-18132 New Role allow switches page finished. 2009-03-25 04:20:57 +00:00
assign.php block contexts: MDL-19098 every block should have a context 2009-07-13 08:37:34 +00:00
check.php block contexts: MDL-19098 every block should have a context 2009-07-13 08:37:34 +00:00
define.php admin tree: MDL-10047 and MDL-13104 weird things happen when you turn editing on and off. 2008-12-11 09:21:41 +00:00
explain.php accesslib: MDL-18620 - followup - remove the one case of external code using one of the accesslib private globals. 2009-03-23 04:02:28 +00:00
lib.php block contexts: MDL-19098 every block should have a context 2009-07-13 08:37:34 +00:00
manage.php MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:26:02 +00:00
managetabs.php switch roles: MDL-18132 Convert allow override page to use the shared code. 2009-03-25 02:17:14 +00:00
override.php block contexts: MDL-19098 every block should have a context 2009-07-13 08:37:34 +00:00
roles.js filtering capability lists: MDL-16605 - followup - make it case-insensitive 2009-04-16 10:44:40 +00:00
tabs.php block contexts: MDL-19098 every block should have a context 2009-07-13 08:37:34 +00:00
usersroles.php MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00