mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 10:18:56 +02:00
Prevent a user from lock itself out from the user system.
This commit is contained in:
parent
856e20586f
commit
90d449ea22
6 changed files with 164 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue