]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_users_by_capability() now excludes doanything'ers properly
authormartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:26:19 +0000 (23:26 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:26:19 +0000 (23:26 +0000)
commit19f2318a445c6d8c7caa8c90c66ddc18c5449f2d
tree3a32296a09d5e09b18084fa56229415c78d393c4
parent92c879cef1314e100bf59544b22dfbe3e7e70512
accesslib: get_users_by_capability() now excludes doanything'ers properly

With some subselect-outer-join poison-pill magic, when the we don't
want doanything users, we remove the roles that would grant such
dubious status.

Just a flick of the SQL muscle, actually.
lib/accesslib.php