]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_user_access_bycontext() fetches overrides in subcontexts, intro aggr_r...
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:03:19 +0000 (07:03 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:03:19 +0000 (07:03 +0000)
commit018d4b52b778bbfa3807e6bc1ec164f2886419f4
treeb8fa2cd6f4c80eb36fe110a84d88b156e2e5313b
parente0376a6241256db39e04a2941200fe2119500466
accesslib: get_user_access_bycontext() fetches overrides in subcontexts, intro aggr_roles_fromsess()

The main thing here is that overrides in subcontexts are
now read correctly (and still cheaply) into the access array.

Also

 - introducing aggr_roles_fromsess() with gives you a list of
   the relevant roles that affect the user in this context

 - we clear out $USER->access on login/logout

 - get_user_access_bycontext() gets a few optimisations too...
lib/accesslib.php