aboutsummaryrefslogtreecommitdiff
path: root/services/userservice.php
diff options
context:
space:
mode:
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) {