summaryrefslogtreecommitdiffstatshomepage
path: root/services/userservice.php
diff options
context:
space:
mode:
authorGravatar mensonge2009-02-20 09:33:59 +0000
committerGravatar mensonge2009-02-20 09:33:59 +0000
commit0c81abaa3e6319fb729f6924c8d8ffb7393a5072 (patch)
treeeffd427ddc891d198976f2770cfc82bf0f744d8b /services/userservice.php
parent6bd34af2885e1e2e93218371923c0d0fdc1e2c53 (diff)
downloadscuttle-0c81abaa3e6319fb729f6924c8d8ffb7393a5072.tar.gz
scuttle-0c81abaa3e6319fb729f6924c8d8ffb7393a5072.zip
Interface fix: menu2 just displays linked tags from admins
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@292 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/userservice.php')
-rw-r--r--services/userservice.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/userservice.php b/services/userservice.php
index a4ed3ac..d0eb96a 100644
--- a/services/userservice.php
+++ b/services/userservice.php
@@ -429,6 +429,16 @@ class UserService {
}
$this->db->sql_freeresult($dbresult);
return $rows;
+ }
+
+ // Returns an array with admin uIds
+ function getAdminIds() {
+ $admins = array();
+ foreach($GLOBALS['admin_users'] as $adminName) {
+ if($this->getIdFromUser($adminName) != NULL)
+ $admins[] = $this->getIdFromUser($adminName);
+ }
+ return $admins;
}
function deleteUser($uId) {