Prevent a user from lock itself out from the user system.

This commit is contained in:
Jan Böhmer 2019-09-11 18:50:23 +02:00
parent 856e20586f
commit 90d449ea22
6 changed files with 164 additions and 1 deletions

View file

@ -33,6 +33,7 @@ namespace App\Entity\UserSystem;
use App\Entity\Base\StructuralDBElement;
use App\Security\Interfaces\HasPermissionsInterface;
use App\Validator\Constraints\ValidPermission;
use Doctrine\ORM\Mapping as ORM;
/**
@ -61,6 +62,7 @@ class Group extends StructuralDBElement implements HasPermissionsInterface
/** @var PermissionsEmbed
* @ORM\Embedded(class="PermissionsEmbed", columnPrefix="perms_")
* @ValidPermission()
*/
protected $permissions;