Commit
This commit is contained in:
parent
ea2cca035a
commit
082ba1c709
@ -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 {
|
||||
|
Reference in New Issue
Block a user