feat: align role assignment logic with myep-team
This commit is contained in:
1 parent
5a3957e143
commit
0c667d6b69
23 files changed
+1109
-527
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user