minor fixes due to change into ckan library

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@131819 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-09-26 16:49:16 +00:00
parent 96cbd47120
commit baddb2e8cb
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
String scope = (String)getThreadLocalRequest().getSession().getAttribute(SessionCatalogueAttributes.SCOPE_CLIENT_PORTLET_URL);
String idFromTitle = org.gcube.datacatalogue.ckanutillibrary.utils.UtilMethods.nameFromTitle(title);
return getCkanUtilsObj(scope).existProductWithNameOrId(idFromTitle);
return getCkanUtilsObj(scope).existProductWithNameOrId(idFromTitle, getUserCKanTokenFromSession(scope));
}catch(Exception e){
logger.error("Unable to check if such a dataset id already exists", e);