mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-06 07:25:32 +01:00
Prevent a user from lock itself out from the user system.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user