mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 06:55:27 +01:00
Allow to specify operations that also need to be set.
When the edit operation is set, the read permission is now set too.
This commit is contained in:
@@ -64,6 +64,7 @@ namespace App\Entity\UserSystem;
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Security\Interfaces\HasPermissionsInterface;
|
||||
use App\Validator\Constraints\Selectable;
|
||||
use App\Validator\Constraints\ValidPermission;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
@@ -163,6 +164,7 @@ class User extends NamedDBElement implements UserInterface, HasPermissionsInterf
|
||||
|
||||
/** @var PermissionsEmbed
|
||||
* @ORM\Embedded(class="PermissionsEmbed", columnPrefix="perms_")
|
||||
* @ValidPermission()
|
||||
*/
|
||||
protected $permissions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user