aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-11 06:52:25 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-11 06:52:25 +0000
commite58f84ce5943e743d34ddc3c990d983dccb17d15 (patch)
tree8dfe22f6046bd947115afa23d3ba751144baa411 /services
parentc86caa886656c5588da416b54c1c1bf62aaf3d74 (diff)
downloadsemanticscuttle-e58f84ce5943e743d34ddc3c990d983dccb17d15.tar.gz
semanticscuttle-e58f84ce5943e743d34ddc3c990d983dccb17d15.tar.bz2
New feature: add admins profile [Config modified: ]
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@102 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services')
-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() {