do not require user_preference permission when creating new user (#3474)

This commit is contained in:
Kevin Papst
2022-08-16 21:13:26 +02:00
committed by GitHub
parent 303ec5be11
commit 1c613d0a52
3 changed files with 4 additions and 2 deletions

View File

@@ -241,7 +241,7 @@ final class UserController extends AbstractController
'action' => $this->generateUrl('admin_user_create'),
'method' => 'POST',
'include_active_flag' => true,
'include_preferences' => $this->isGranted('preferences', $user),
'include_preferences' => true,
'include_add_more' => true,
'include_teams' => $this->isGranted('teams_other_profile'),
'include_roles' => $this->isGranted('roles_other_profile'),