mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
accesslib: delete_context() now appropriately marks the context dirty.
This commit is contained in:
parent
57770b87d0
commit
e7c8160b6f
@ -2248,6 +2248,7 @@ function create_system_context() {
|
||||
function delete_context($contextlevel, $instanceid) {
|
||||
if ($context = get_context_instance($contextlevel, $instanceid)) {
|
||||
delete_records('context_rel', 'c2', $context->id); // might not be a parent
|
||||
mark_context_dirty($context->path);
|
||||
return delete_records('context', 'id', $context->id) &&
|
||||
delete_records('role_assignments', 'contextid', $context->id) &&
|
||||
delete_records('role_capabilities', 'contextid', $context->id) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user