Allow users to change the group of a user, when he is allowed to change permissions

This commit is contained in:
Jan Böhmer 2022-11-14 22:42:12 +01:00
parent fd96f47952
commit 21af37b8e7

View file

@ -102,7 +102,7 @@ class UserAdminForm extends AbstractType
'required' => false,
'label' => 'group.label',
'disable_not_selectable' => true,
'disabled' => !$this->security->isGranted('change_group', $entity),
'disabled' => !$this->security->isGranted('edit_permissions', $entity),
])
->add('first_name', TextType::class, [