diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-04 21:13:47 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-04 21:13:47 -0400 |
commit | ad4a7ff9159c2c64cea98d7189f46fa7d6174fc2 (patch) | |
tree | 508f971f1dbc6c6f01207426c675542b55e0333e /src/lib/Auth.class.php | |
parent | f3b3ea69fb46e45bf3598aa7a6bcf62aa80e4703 (diff) |
Screw it, I'm tired of trying to break this into individual commits
Diffstat (limited to 'src/lib/Auth.class.php')
-rw-r--r-- | src/lib/Auth.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Auth.class.php b/src/lib/Auth.class.php index 4c2a9c6..e49ebf7 100644 --- a/src/lib/Auth.class.php +++ b/src/lib/Auth.class.php @@ -26,6 +26,11 @@ class Auth { return $type; } protected function setType($type) { + $logged_in_uid = $this->mm->isLoggedIn(); + $logged_in_obj = $this->mm->getAuthObj($logged_in_uid); + $is_admin = $logged_in_obj->isAdmin(); + if (!$is_admin) return false; + return $this->mm->setStatus($this->uid, $type); } public function isUser() { |