Optimized constructor of right

This commit is contained in:
Kevin Frantz
2018-11-04 15:56:40 +01:00
parent f634555ed5
commit 9e4b00e2ae
2 changed files with 2 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ final class Right extends AbstractMeta implements RightInterface
parent::__construct();
$this->grant = true;
$this->reciever = new Reciever();
$this->reciever->setRight($this);
}
public function isGranted(SourceInterface $source, string $layer, string $right): bool