diff --git a/app/Libraries/Aauth.php b/app/Libraries/Aauth.php index 02c7873..f9701af 100644 --- a/app/Libraries/Aauth.php +++ b/app/Libraries/Aauth.php @@ -500,6 +500,8 @@ class Aauth $userModel->where('id', $userId); $userModel->where('banned', 0); + $user = $userModel->asArray()->first(); + $this->session->set('user', [ 'id' => $user['id'], 'username' => $user['username'], @@ -612,8 +614,6 @@ class Aauth $userId = (int) @$this->session->user['id']; } - $userModel = $this->getModel('User'); - return $this->isMember($this->config->groupAdmin, $userId); } diff --git a/app/Views/Account/Home.php b/app/Views/Account/Home.php index 16668b2..37d9504 100644 --- a/app/Views/Account/Home.php +++ b/app/Views/Account/Home.php @@ -22,6 +22,7 @@ = $user['email'] ?> +