]> git.mjollnir.org Git - moodle.git/commit
accesslib: Introducing is_siteadmin() to reliably check for siteadmins
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:30:09 +0000 (07:30 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:30:09 +0000 (07:30 +0000)
commit394074424a5aec2709c1d0c3afce70727dde0adb
treedb65f67a56d32f997fa515c8235653f2b53c2c65
parent67ab1aecfb6e1babee249f3c41c98532c740f047
accesslib: Introducing is_siteadmin() to reliably check for siteadmins

is_siteadmin checks a few key capabilities to suss out if the user is
an admin. The main virtue of the function is that it does not use
the accesslib infrastructure -- it reads directly from the DB, which
is useful for the 1.9 accesslib upgrade.
lib/accesslib.php