|
|
|
@ -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<GCubeRole> 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);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|