]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_user_by_capability() - Move hidden RA checks to subselect
authormartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:24:14 +0000 (23:24 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:24:14 +0000 (23:24 +0000)
commitd2c5b7a9fa599d2d4fd47044a1aea0d69000070f
tree3afee13ff4fe93d87ee47b279ddec9132a1bd6e5
parenta4436c6db84a71ac468c925a27bd99b8d26f61a8
accesslib: get_user_by_capability() - Move hidden RA checks to subselect

we don't deal with RAs in the main SELECT -- we deal with _capabilities_
which is an entirely different matter ;-) -- so push the ra.hidden check
into the subselect.

Also, remove ra.hidden from the default list of fields. Hopefully no
callers are using ra.hidden -- if they are, they should be calling
something else, as this function deals with capabilities. So we might
need an audit of callers, to check that noone is expecting ra.hidden
to be there.

MDL-12452
lib/accesslib.php