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(
|
groupMatchesSearchOrIsPathElement(
|
||||||
g, search
|
g, search
|
||||||
)
|
)
|
||||||
).map(subGroup ->
|
).map(subGroup -> {
|
||||||
ModelToRepresentation.toGroupHierarchy(
|
final GroupRepresentation subRep = ModelToRepresentation.toGroupHierarchy(
|
||||||
subGroup, true, search, exact
|
subGroup, true, search, exact
|
||||||
)
|
);
|
||||||
|
subRep.setAccess(auth.groups().getAccess(subGroup));
|
||||||
|
return subRep;
|
||||||
|
}
|
||||||
).collect(Collectors.toList()));
|
).collect(Collectors.toList()));
|
||||||
|
|
||||||
return rep;
|
return rep;
|
||||||
|
|
Loading…
Reference in a new issue