summaryrefslogtreecommitdiff
path: root/src/models/Auth.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Auth.class.php')
-rw-r--r--src/models/Auth.class.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/models/Auth.class.php b/src/models/Auth.class.php
index 3aba0f3..f2c9120 100644
--- a/src/models/Auth.class.php
+++ b/src/models/Auth.class.php
@@ -46,11 +46,10 @@ class Auth {
return $type;
}
protected function setType($type) {
- $logged_in_uid = $this->db->isLoggedIn();
+ $logged_in_uid = Login::isLoggedIn();
$logged_in_obj = Auth::getObj($logged_in_uid);
- $is_admin = $logged_in_obj->isAdmin();
+ $is_admin = $logged_in_obj->isAdmin();
if (!$is_admin) return false;
-
return $this->db->setStatus($this->uid, $type);
}
public function isUser() {