mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Refactored parameter name
This commit is contained in:
parent
5887b1c869
commit
365104ac9f
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user