fix: drop the implicit ROLE_USER from the userinfo roles claim

This commit is contained in:
Björn Fromme
2026-08-12 17:47:44 +02:00
parent aa486a4931
commit d74127ebe2
4 changed files with 28 additions and 8 deletions
+1 -5
View File
@@ -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;
}