From ec3402799fc58707de70ae8629e36aca53ca3485 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 14 Jun 2016 15:52:00 +0000 Subject: [PATCH] minor fix git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@129123 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/GcubeCkanDataCatalogServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);