diff options
Diffstat (limited to 'htdocs/src/User.inc.php')
-rw-r--r-- | htdocs/src/User.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/htdocs/src/User.inc.php b/htdocs/src/User.inc.php index 6821042..6ad5ebb 100644 --- a/htdocs/src/User.inc.php +++ b/htdocs/src/User.inc.php @@ -69,6 +69,10 @@ class User { public function authenticate($password) { return sha1($password) == $this->info['password']; } + + public function isAdmin() { + return $this->info['admin'] == 1; + } } ?> |