]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_user_access_sitewide() was skipping rdefs
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:54:06 +0000 (07:54 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:54:06 +0000 (07:54 +0000)
commitaba5f469f6611ebea3f8a2c1403c05f395379e83
tree209efab9f8d1d88e87deb14abc6db1c8ae1c4dcc
parent53fb75dc1f1fcf59899b2f295368ede0fc808764
accesslib: get_user_access_sitewide() was skipping rdefs

The SQL query that would fetch rdefs not associated with any ra was
not being executed. Duh! For example, a user with a teacher RA sitewide
would never be affected by a role override at the category
level, because it was not being loaded into accessdata.
lib/accesslib.php