mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Optimized right and reciever logic
This commit is contained in:
@@ -56,14 +56,6 @@ final class Right extends AbstractMeta implements RightInterface
|
||||
*/
|
||||
protected $grant;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Relation")
|
||||
* @ORM\JoinColumn(name="relation_id", referencedColumnName="id")
|
||||
*
|
||||
* @var RelationInterface
|
||||
*/
|
||||
protected $relation;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="type", type="RightType", nullable=false)
|
||||
* @DoctrineAssert\Enum(entity="App\DBAL\Types\RightType")
|
||||
@@ -84,6 +76,7 @@ final class Right extends AbstractMeta implements RightInterface
|
||||
{
|
||||
parent::__construct();
|
||||
$this->grant = true;
|
||||
$this->reciever = new Reciever();
|
||||
}
|
||||
|
||||
public function isGranted(SourceInterface $source, string $layer, string $right): bool
|
||||
|
Reference in New Issue
Block a user