diff --git a/app/Libraries/Aauth.php b/app/Libraries/Aauth.php index 6da309a..6caf827 100644 --- a/app/Libraries/Aauth.php +++ b/app/Libraries/Aauth.php @@ -540,13 +540,13 @@ class Aauth */ public function isAdmin(int $userId = null) { - $userModel = new UserModel(); - if (! $userId) { $userId = (int) @$this->session->user['id']; } + $userModel = new UserModel(); + return $this->isMember($this->config->groupAdmin, $userId); }