summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-15 14:57:23 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-15 14:57:23 +0100
commit9bf367e7f803d6968dc2c639624ce191d538a5bc (patch)
tree5ef8bec79c46d548d198ca87bbbc9b16974bb5a5 /lib/user.php
parent3a9ec452729bf9b6a51d36750b095d9ef80a5f7e (diff)
parentbb9cc227c2583adc6b51a1f6d75a9fc8333836b9 (diff)
downloadnextcloud-server-9bf367e7f803d6968dc2c639624ce191d538a5bc.tar.gz
nextcloud-server-9bf367e7f803d6968dc2c639624ce191d538a5bc.zip
merge master into filesystem
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/user.php b/lib/user.php
index 80f88ca7052..8d4eb7aec4d 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -300,6 +300,19 @@ class OC_User {
}
/**
+ * @brief Check if the user is an admin user
+ * @param $uid uid of the admin
+ * @returns bool
+ */
+ public static function isAdminUser($uid) {
+ if(OC_Group::inGroup($uid, 'admin' )) {
+ return true;
+ }
+ return false;
+ }
+
+
+ /**
* @brief get the user id of the user currently logged in.
* @return string uid or false
*/