Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
acces is int not bool
  • Loading branch information
eltharin committed Feb 10, 2025
commit 96e61934a342ca30e41757173d0dc165e35226ba
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getAccess(): int

public function isGranted(): bool
{
return true === $this->access || $this->access > 0;
return $this->access > 0;
}

public function isAbstain(): bool
Expand All @@ -70,7 +70,7 @@ public function isAbstain(): bool

public function isDenied(): bool
{
return false === $this->access || $this->access < 0;
return $this->access < 0;
}

/**
Expand Down