]> source.dussan.org Git - nextcloud-server.git/commit
Check if user is admin - bool
authorLukas Reschke <lukas@statuscode.ch>
Mon, 14 Jan 2013 18:45:17 +0000 (19:45 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 14 Jan 2013 18:45:17 +0000 (19:45 +0100)
commit31b1a73e1f508a33843835b632ee05c7bfc2aaaf
treee590662315799744155151b2c6c9148d2e9e860e
parentfa78fbe0c3e281c91468bee92c871be7b1e48c79
Check if user is admin - bool

There was no "isAdminUser()" function which returned bool. This is
irritiating as there were a loooooooot of places in the code which
checked this itself with `OC_Group::inGroup($uid, 'admin)` - why not
use a function for this?
(Especially if you consider that we might change the group name in the
future, which would lead to problems then)

Additionally, @Raydiation needed such a method for his AppFramework :)
16 files changed:
lib/api.php
lib/app.php
lib/json.php
lib/migrate.php
lib/ocs/cloud.php
lib/subadmin.php
lib/user.php
lib/util.php
settings/ajax/changepassword.php
settings/ajax/createuser.php
settings/ajax/removeuser.php
settings/ajax/setquota.php
settings/ajax/togglegroups.php
settings/ajax/userlist.php
settings/help.php
settings/users.php