summaryrefslogtreecommitdiff
path: root/htdocs/src/User.inc.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-05-25 11:32:49 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-05-25 11:32:49 -0700
commit0c72d673a9056c753503e6b2a8d4fbf3aba75a95 (patch)
tree94d9ef802da3f4fa0b3a00fd909a576fc63ed844 /htdocs/src/User.inc.php
parenta39f9512f0efd3ec3e0a31df656e25dd3f824f6d (diff)
Moderation workflow is.. working
Diffstat (limited to 'htdocs/src/User.inc.php')
-rw-r--r--htdocs/src/User.inc.php4
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;
+ }
}
?>