fix: drop the implicit ROLE_USER from the userinfo roles claim
This commit is contained in:
@@ -141,11 +141,7 @@ class AppRuntime implements RuntimeExtensionInterface
|
||||
|
||||
$mapped = [];
|
||||
|
||||
foreach ($roles as $role) {
|
||||
if ('ROLE_USER' === $role) {
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach (Role::assignedOnly($roles) as $role) {
|
||||
$mapped[] = $labels[$role] ?? $role;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user