From 0c72d673a9056c753503e6b2a8d4fbf3aba75a95 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 25 May 2011 11:32:49 -0700 Subject: Moderation workflow is.. working --- htdocs/src/User.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'htdocs/src/User.inc.php') 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; + } } ?> -- cgit v1.2.3