]> git.mjollnir.org Git - moodle.git/commit
All interactive enrol/unenrol codepaths mark the context dirty
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:11:42 +0000 (07:11 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:11:42 +0000 (07:11 +0000)
commita9d4ea78493c6a8be2380ff9042592c41a2cde30
tree49c42b6f04ff8aee7ff7bccde7c5e3597f0daa53
parentdf75ca2289728ca2a4d8c079b13c12efd917bc56
All interactive enrol/unenrol codepaths mark the context dirty

Manually enrolling and unenrolling self, and other users should
transparently set the context dirty. So walk all callers to
role_assign() and role_unassign() and mark the context dirty
where appropriate.

OTOH, most automated-backend enrol/unenrol mechanisms should not.
The backend lookups that happen when you login are well covered
by the login/enrolment process, and don't need to be marked dirty.
course/unenrol.php
lib/accesslib.php
lib/moodlelib.php