Skip to content

Commit

Permalink
fix: πŸ› Use getAllSubgGroups in BBMRIResources reg.module
Browse files Browse the repository at this point in the history
Use getAllSubGroups to get the full tree instead of just getSubGroups
  • Loading branch information
Dominik Frantisek Bucik committed Nov 7, 2023
1 parent bfb3e6a commit 3fdcffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private Map<String, Group> getResourceIDsToGroupsMap(PerunSession session,
{
Map<String, Group> resourceIDsToGroupMap = new HashMap<>();

List<Group> resourceGroups = perun.getGroupsManagerBl().getSubGroups(session, resourceOriginGroup);
List<Group> resourceGroups = perun.getGroupsManagerBl().getAllSubGroups(session, resourceOriginGroup);
if (resourceGroups == null || resourceGroups.isEmpty()) {
log.debug("No resource groups found, returning empty map.");
return resourceIDsToGroupMap;
Expand Down

0 comments on commit 3fdcffc

Please sign in to comment.