mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Added default grant value for law
This commit is contained in:
@@ -134,7 +134,7 @@ final class LawPermissionCheckerService implements LawPermissionCheckerServiceIn
|
||||
private function isGranted(Collection $rights, RightInterface $client): bool
|
||||
{
|
||||
if (0 === $rights->count()) {
|
||||
return false;
|
||||
return $this->law->getGrant();
|
||||
}
|
||||
$right = $rights[0];
|
||||
$rightChecker = new RightChecker($right);
|
||||
|
Reference in New Issue
Block a user