diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/CatalogueRoleManager.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/CatalogueRoleManager.java index bf218e8..1c1ca35 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/CatalogueRoleManager.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/server/utils/CatalogueRoleManager.java @@ -77,16 +77,18 @@ public class CatalogueRoleManager { // root (so check into the root, the VOs and the VRES) if(groupManager.isRootVO(currentGroupId)){ - logger.info("The current scope is the Root Vo, so the list of organizations of the user " + username + " is " + groups); + logger.info("The current scope is the Root Vo, so the list of organizations of the user " + username + " has " + groups.size() + " group/s"); for (GCubeGroup gCubeGroup : groups) { - + if(!groupManager.isVRE(gCubeGroup.getGroupId())) continue; // get the name of this group String gCubeGroupName = gCubeGroup.getGroupName(); - + + logger.info("Cheking role of the user " + username + " in the VRE " + gCubeGroupName); + // get the role of the users in this group List roles = roleManager.listRolesByUserAndGroup(userid, groupManager.getGroupId(gCubeGroupName)); @@ -98,6 +100,8 @@ public class CatalogueRoleManager { correspondentRoleToCheck, groupManager, gcubeCkanDataCatalogServiceImpl, orgsInWhichAtLeastEditorRole); toReturn = RolesCkanGroupOrOrg.getHigher(toReturn, correspondentRoleToCheck); + + logger.info("Found the role "+toReturn+" for " + username + " in the VRE " + gCubeGroupName); }