add fine grain access to subgroups (#16672)
fixes: https://github.com/keycloak/keycloak-ui/issues/4195
This commit is contained in:
parent
c4255e7301
commit
5f8ee1c49d
1 changed files with 7 additions and 4 deletions
|
@ -76,10 +76,13 @@ public class GroupsResource {
|
|||
groupMatchesSearchOrIsPathElement(
|
||||
g, search
|
||||
)
|
||||
).map(subGroup ->
|
||||
ModelToRepresentation.toGroupHierarchy(
|
||||
).map(subGroup -> {
|
||||
final GroupRepresentation subRep = ModelToRepresentation.toGroupHierarchy(
|
||||
subGroup, true, search, exact
|
||||
)
|
||||
);
|
||||
subRep.setAccess(auth.groups().getAccess(subGroup));
|
||||
return subRep;
|
||||
}
|
||||
).collect(Collectors.toList()));
|
||||
|
||||
return rep;
|
||||
|
|
Loading…
Reference in a new issue