patchProduct for grsf is performed with a sysadmin token so that we can give a role of member/editor to the other members in the grsf-admin organization

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@139904 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-12 09:25:18 +00:00
parent cc8b9b7c0f
commit 1bc3ae3673
1 changed files with 1 additions and 1 deletions

View File

@ -2354,7 +2354,7 @@ public class DataCatalogueImpl implements DataCatalogue{
String pathUpdatePatch = getCatalogueUrl() + "/api/3/action/package_patch";
HttpPost httpPostRequest = new HttpPost(pathUpdatePatch);
httpPostRequest.setHeader("Authorization", apiKey);
httpPostRequest.setHeader("Authorization", CKAN_TOKEN_SYS);
StringEntity params = new StringEntity(jsonRequest.toJSONString(), ContentType.APPLICATION_JSON);
httpPostRequest.setEntity(params);