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
This commit is contained in:
Costantino Perciante 2016-06-14 15:52:00 +00:00
parent 173d46f710
commit ec3402799f
1 changed files with 1 additions and 5 deletions

View File

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