From 21af37b8e7789573eeb291c759c82f65919ba9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 14 Nov 2022 22:42:12 +0100 Subject: [PATCH] Allow users to change the group of a user, when he is allowed to change permissions --- src/Form/UserAdminForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/UserAdminForm.php b/src/Form/UserAdminForm.php index 535bb240..c2ca314e 100644 --- a/src/Form/UserAdminForm.php +++ b/src/Form/UserAdminForm.php @@ -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, [