Added default grant value for law

This commit is contained in:
Kevin Frantz
2019-01-01 21:33:13 +01:00
parent 1ee710e608
commit 3efa57f29a
5 changed files with 21 additions and 3 deletions

View File

@@ -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);