From b164d6ce141f242bd33169bf5f72185daf0208a5 Mon Sep 17 00:00:00 2001 From: Andreas Blaettlinger Date: Thu, 27 Jun 2024 10:26:37 +0200 Subject: [PATCH] Adjusted remaining endpoints Signed-off-by: Andreas Blaettlinger --- .../admin/ui/rest/EffectiveRoleMappingResource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rest/admin-ui-ext/src/main/java/org/keycloak/admin/ui/rest/EffectiveRoleMappingResource.java b/rest/admin-ui-ext/src/main/java/org/keycloak/admin/ui/rest/EffectiveRoleMappingResource.java index 61aaadafb6d6..e064c5b49214 100644 --- a/rest/admin-ui-ext/src/main/java/org/keycloak/admin/ui/rest/EffectiveRoleMappingResource.java +++ b/rest/admin-ui-ext/src/main/java/org/keycloak/admin/ui/rest/EffectiveRoleMappingResource.java @@ -60,7 +60,7 @@ public final List listCompositeClientScopeRoleMappings(@PathParam("i this.auth.clients().requireView(clientScope); return toSortedClientRoles( addSubClientRoles(clientScope.getScopeMappingsStream()) - .filter(auth.roles()::canMapClientScope)); + ); } @GET @@ -90,7 +90,7 @@ public final List listCompositeClientsRoleMappings(@PathParam("id") auth.clients().requireView(client); return toSortedClientRoles( addSubClientRoles(client.getScopeMappingsStream()) - .filter(auth.roles()::canMapRole)); + ); } @GET @@ -120,7 +120,7 @@ public final List listCompositeGroupsRoleMappings(@PathParam("id") S auth.groups().requireView(group); return toSortedClientRoles( addSubClientRoles(addParents(group).flatMap(GroupModel::getRoleMappingsStream)) - .filter(auth.roles()::canMapRole)); + ); } @GET @@ -181,7 +181,7 @@ public final List listCompositeRealmRoleMappings() { //this definitely does not return what the descriptions says return toSortedClientRoles( addSubClientRoles(Stream.of(defaultRole)) - .filter(auth.roles()::canMapRole)); + ); } private Stream addSubClientRoles(Stream roles) {