diff --git a/application/symfony/src/Domain/Secure/SecureSourceChecker.php b/application/symfony/src/Domain/Secure/SecureSourceChecker.php index c0ebeb9..cb34bb9 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceChecker.php +++ b/application/symfony/src/Domain/Secure/SecureSourceChecker.php @@ -74,10 +74,10 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface * * @see \Infinito\Domain\Secure\SecureSourceCheckerInterface::hasPermission() */ - public function hasPermission(RightInterface $requestedRight): bool + public function hasPermission(RightInterface $right): bool { $law = new LawPermissionChecker($this->source->getLaw()); - return $law->hasPermission($requestedRight) && $this->itterateOverSourceAttributs($requestedRight); + return $law->hasPermission($right) && $this->itterateOverSourceAttributs($right); } } diff --git a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php index 3737e9a..4312364 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php +++ b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php @@ -9,8 +9,5 @@ use Infinito\Entity\Meta\RightInterface; */ interface SecureSourceCheckerInterface { - /** - * @param RightInterface $right - */ - public function hasPermission(RightInterface $requestedRight): bool; + public function hasPermission(RightInterface $right): bool; }