]> git.mjollnir.org Git - moodle.git/commit
datalib: get_admins() - Rewrite to avoid get_users_by_capability()
authormartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:24:50 +0000 (23:24 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:24:50 +0000 (23:24 +0000)
commitc26ecb1a29d9bd954070a0ce36d224df2d4e2970
treeee83235511cdb24360e87b940f875feea781e6df
parentc92bce46148c25577226251002b040db44930284
datalib: get_admins() - Rewrite to avoid get_users_by_capability()

get_admins() and get_admin() were counting on
get_users_by_capability() returning a role-assignment id to pick the
"primary" admin account. With the get_users_by_capability() rewrite,
we no longer have an RA id to clearly blame for the capability.

So, rewrite get_admins() based on the known-good SQL used in
is_siteadmin().

MDL-12452
lib/datalib.php