mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Check permission when changing permissions for users.
This commit is contained in:
parent
c2c9f3a938
commit
2c866186b0
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ class UserAdminForm extends AbstractType
|
|||
->add('permissions', PermissionsType::class, [
|
||||
'mapped' => false,
|
||||
'data' => $builder->getData(),
|
||||
//'user' => $builder->getData(),
|
||||
'disabled' => !$this->security->isGranted('edit_permissions', $entity)
|
||||
])
|
||||
;
|
||||
/*->add('comment', CKEditorType::class, ['required' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue