]> git.mjollnir.org Git - moodle.git/commit
accesslib:get_role_users() revamp
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:09:13 +0000 (07:09 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:09:13 +0000 (07:09 +0000)
commit867f957fc5a2e3b53c827d2f06b9a4ce4b546f18
treede729f34ac3933d888fb7a14970f751df6b5649d
parent8fe9c4de5153ae7b706f18bdf3135c65d84524c2
accesslib:get_role_users() revamp

Now get_role_users() joins with contexts and roles too, so we can
push more work into it, and simplify the callers.

One important change is that the $view flag gets reworked into
$gethidden, pushing the cap check to the caller.

This commit is followed by a cleanup of the callers...
lib/accesslib.php