Added grant to all function to RightChecker and LawPermissionChecker

This commit is contained in:
Kevin Frantz
2019-02-16 16:16:48 +01:00
parent 6f6b720470
commit 256e37ccd5
12 changed files with 130 additions and 11 deletions

View File

@@ -110,7 +110,7 @@ abstract class AbstractRequestedRightFacade implements RequestedRightInterface
*
* @see \App\Attribut\RecieverAttributInterface::setReciever()
*/
public function setReciever(SourceInterface $reciever): void
public function setReciever(?SourceInterface $reciever): void
{
$this->requestedRight->setReciever($reciever);
}
@@ -124,4 +124,14 @@ abstract class AbstractRequestedRightFacade implements RequestedRightInterface
{
return $this->requestedRight->hasRequestedEntity();
}
/**
* {@inheritdoc}
*
* @see \App\Attribut\RecieverAttributInterface::hasReciever()
*/
public function hasReciever(): bool
{
return $this->requestedRight->hasReciever();
}
}

View File

@@ -35,7 +35,7 @@ class RequestedUser extends AbstractRequestedRightFacade implements RequestedUse
* {@inheritdoc}
* @see \App\Attribut\RecieverAttributInterface::setReciever()
*/
public function setReciever(SourceInterface $reciever): void
public function setReciever(?SourceInterface $reciever): void
{
throw new SetNotPossibleException('It\'s not possible to set the reciever! Set it via '.UserSourceDirectorInterface::class.'!');
}