aboutsummaryrefslogtreecommitdiff
path: root/classes/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/user.php')
-rw-r--r--classes/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/user.php b/classes/user.php
index 750e8bb..f6c6322 100644
--- a/classes/user.php
+++ b/classes/user.php
@@ -156,7 +156,7 @@ class user {
* @return bool True iff the user has administrator rights
*/
public function isAdmin() {
- return $this->getId() == 1;
+ return in_array($this->getId(), constants::user_admins);
}
/**