feat: align role assignment logic with myep-team

This commit is contained in:
Björn Fromme committed 2026-08-19 12:14:09 +02:00
1 parent 5a3957e143
commit 0c667d6b69
23 files changed
+1109 -527

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ class UserinfoController extends AbstractController
// Patch current user's roles. The implicit ROLE_USER says nothing about the
// account — every authenticated user holds it — and is not exported.
$data->roles = Role::assignedOnly($user->getRoles());
$data->roles = Role::effectiveOnly($user->getRoles());
// Patch current user's hotel codes
$data->hotelCodes = $user->getHotelCodes();