include roles and teams in user create form (#2849)

This commit is contained in:
Kevin Papst
2021-11-03 16:24:22 +01:00
committed by GitHub
parent 2bc76e7adc
commit b92488e32f
3 changed files with 85 additions and 0 deletions

View File

@@ -241,6 +241,8 @@ final class UserController extends AbstractController
'include_active_flag' => true,
'include_preferences' => $this->isGranted('preferences', $user),
'include_add_more' => true,
'include_teams' => $this->isGranted('teams_other_profile'),
'include_roles' => $this->isGranted('roles_other_profile'),
]);
}
}