aboutsummaryrefslogtreecommitdiff
path: root/services/userservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/userservice.php')
-rw-r--r--services/userservice.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/services/userservice.php b/services/userservice.php
index 381ae51..c691b36 100644
--- a/services/userservice.php
+++ b/services/userservice.php
@@ -133,7 +133,14 @@ class UserService {
}
function isAdmin($userid) {
- return false; //not implemented yet
+ $user = $this->getUser($userid);
+
+ if(isset($GLOBALS['admin_users'])
+ && in_array($user['username'], $GLOBALS['admin_users'])) {
+ return true;
+ } else {
+ return false;
+ }
}
function getCurrentUserId() {