admin/roles: context-specific role changes mark the context as dirty

And will force a reload of $USER->access for logged-in users that need
to read _this_ context. Much lower impact - still not a great idea to
edit assignments/caps on very busy courses, but impact should be low.
This commit is contained in:
martinlanghoff
2007-09-19 07:10:52 +00:00
parent b3dc845cab
commit e6560e39d7
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -225,6 +225,8 @@
}
}
}
// force accessinfo refresh for users visiting this context...
mark_context_dirty($context->path);
} else if ($remove and !empty($frm->removeselect) and confirm_sesskey()) {
@@ -259,6 +261,8 @@
}
}
}
// force accessinfo refresh for users visiting this context...
mark_context_dirty($context->path);
} else if ($showall) {
$searchtext = '';
+4
View File
@@ -112,6 +112,10 @@
}
}
}
// force accessinfo refresh for users visiting this context...
mark_context_dirty($context->path);
redirect($baseurl);
}