mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 11:17:58 +00:00 
			
		
		
		
	Refactored parameter name
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user