MDL-29602 accesslib improvements
authorPetr Skoda <commits@skodak.org>
Fri, 14 Oct 2011 10:48:00 +0000 (12:48 +0200)
committerPetr Skoda <commits@skodak.org>
Sun, 16 Oct 2011 12:05:18 +0000 (14:05 +0200)
commite922fe23b684eef2c82f0ade1f7ec4bbad9ac554
tree5a2a74e007025b0979b2d0983c35542810cc85a6
parent6731a04d93dfad76c820c4b8e726442065797638
MDL-29602 accesslib improvements

Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
26 files changed:
admin/report/questioninstances/index.php
admin/roles/usersroles.php
admin/tool/capability/index.php
auth/shibboleth/index.php
auth/upgrade.txt [new file with mode: 0644]
blog/edit.php
blog/edit_form.php
blog/locallib.php
enrol/guest/lib.php
enrol/paypal/return.php
enrol/upgrade.txt [new file with mode: 0644]
lib/accesslib.php
lib/datalib.php
lib/db/install.php
lib/deprecatedlib.php
lib/enrollib.php
lib/moodlelib.php
lib/navigationlib.php
lib/sessionlib.php
lib/simpletest/fulltestaccesslib.php [new file with mode: 0644]
lib/simpletest/testaccesslib.php [deleted file]
lib/upgradelib.php
login/token.php
rss/file.php
webservice/lib.php
webservice/upload.php