Skip to content

Commit 3fdcffc

Browse files
author
Dominik Frantisek Bucik
committed
fix: 🐛 Use getAllSubgGroups in BBMRIResources reg.module
Use getAllSubGroups to get the full tree instead of just getSubGroups
1 parent bfb3e6a commit 3fdcffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perun-registrar-lib/src/main/java/cz/metacentrum/perun/registrar/modules/BBMRIResources.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private Map<String, Group> getResourceIDsToGroupsMap(PerunSession session,
290290
{
291291
Map<String, Group> resourceIDsToGroupMap = new HashMap<>();
292292

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

0 commit comments

Comments
 (0)