diff --git a/application/src/Entity/Attribut/GrantAttribut.php b/application/src/Entity/Attribut/GrantAttribut.php new file mode 100644 index 0000000..d052ae3 --- /dev/null +++ b/application/src/Entity/Attribut/GrantAttribut.php @@ -0,0 +1,24 @@ +grant = $grant; + } + + public function getGrant(): bool + { + return $this->grant; + } +} diff --git a/application/src/Entity/Attribut/GrantAttributInterface.php b/application/src/Entity/Attribut/GrantAttributInterface.php new file mode 100644 index 0000000..ecb8679 --- /dev/null +++ b/application/src/Entity/Attribut/GrantAttributInterface.php @@ -0,0 +1,13 @@ +blacklist = false; - $this->whitelist = false; + $this->grant = true; } } diff --git a/application/src/Entity/PermissionInterface.php b/application/src/Entity/PermissionInterface.php index 81ac55f..0818bad 100644 --- a/application/src/Entity/PermissionInterface.php +++ b/application/src/Entity/PermissionInterface.php @@ -2,15 +2,14 @@ namespace App\Entity; -use App\Entity\Attribut\BlacklistAttributInterface; -use App\Entity\Attribut\WhitelistAttributInterface; use App\Entity\Attribut\NodeAttributInterface; use App\Entity\Attribut\RightAttributInterface; use App\Entity\Attribut\RecieverAttributInterface; +use App\Entity\Attribut\GrantAttributInterface; /** * @author kevinfrantz */ -interface PermissionInterface extends BlacklistAttributInterface, WhitelistAttributInterface, NodeAttributInterface, RightAttributInterface, RecieverAttributInterface +interface PermissionInterface extends NodeAttributInterface, RightAttributInterface, RecieverAttributInterface, GrantAttributInterface { }