mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added grant to all function to RightChecker and LawPermissionChecker
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
@@ -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.'!');
|
||||
}
|
||||
|
Reference in New Issue
Block a user