diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java index c026547..76facaa 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java @@ -196,12 +196,8 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem } } - // ask to ckan util lib the roles the user has in this scope(i.e. ckan organization) - String[] splittedScope = currentScope.split("/"); - String organizationName = splittedScope[splittedScope.length -1]; - // TODO with this invocation, we check if the role is present in ckan and if it is not it will be added - CKanUtilsFactory.getInstance().getCkanUtilsForScope(currentScope).checkRole(username, organizationName, correspondentRoleToCheck); + CKanUtilsFactory.getInstance().getCkanUtilsForScope(currentScope).checkRole(username, groupName, correspondentRoleToCheck); return reMapRole(mainRole);