infinito/application/symfony/src/Domain/SecureManagement/SecureSourceCheckerInterface.php
2019-02-17 14:33:19 +01:00

22 lines
404 B
PHP

<?php
namespace Infinito\Domain\SecureManagement;
use Infinito\Entity\Meta\RightInterface;
use Infinito\Exception\SourceAccessDenied;
/**
* @author kevinfrantz
*/
interface SecureSourceCheckerInterface
{
/**
* @throws SourceAccessDenied
*
* @param RightInterface $right
*
* @return bool
*/
public function hasPermission(RightInterface $requestedRight): bool;
}