diff --git a/app/lib/App/Core/AccessControl.php b/app/lib/App/Core/AccessControl.php index 51435db..3c608c9 100644 --- a/app/lib/App/Core/AccessControl.php +++ b/app/lib/App/Core/AccessControl.php @@ -79,7 +79,7 @@ class AccessControl private function page(int $powerLevel): void { - if ($this->app->user->loggedIn && $this->app->user->powerLevel <= $powerLevel) + if ($this->app->user->loggedIn && $this->app->user->powerLevel >= $powerLevel) { echo "Authorized!"; } else {