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:
parent
173d46f710
commit
ec3402799f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue