From 082ba1c709c448ca91b8ee7fce564f26cf3fcf55 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 14 Mar 2022 07:33:38 +0100 Subject: [PATCH] Commit --- app/lib/App/Core/AccessControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {