mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-22 12:42:23 +02:00
23 lines
476 B
PHP
23 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Domain\RightManagement;
|
|
|
|
use App\Entity\Source\SourceInterface;
|
|
|
|
/**
|
|
* Checks if the crud, layer and source combination is granted by a right.
|
|
*
|
|
* @author kevinfrantz
|
|
*/
|
|
interface RightCheckerInterface
|
|
{
|
|
/**
|
|
* @param string $layer
|
|
* @param string $type
|
|
* @param SourceInterface $source
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isGranted(string $layer, string $type, SourceInterface $source): bool;
|
|
}
|