mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-22 12:42:23 +02:00
22 lines
404 B
PHP
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;
|
|
}
|