minor fix for no longer available scope_ckan variable in http session

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@134688 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-11-24 14:57:17 +00:00
parent f396335109
commit 90eda1a95b
2 changed files with 2 additions and 4 deletions

View File

@ -3500,10 +3500,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
// retrieve scope per current portlet url
String scopePerCurrentUrl = ApplicationProfileScopePerUrlReader.getScopePerUrl(currentPortletUrl);
// save it
//TODO: commit SessionCatalogueAttributes on nexus and uncomment the line below
//this.getThreadLocalRequest().getSession().setAttribute(SessionCatalogueAttributes.SCOPE_CLIENT_PORTLET_URL, scopePerCurrentUrl);
this.getThreadLocalRequest().getSession().setAttribute(currentPortletUrl, scopePerCurrentUrl);
// get key per scope
String keyPerScopeRole = UtilMethods.concatenateSessionKeyScope(SessionCatalogueAttributes.CKAN_PUBLISH_WORKSPACE, scopePerCurrentUrl);

View File

@ -325,4 +325,5 @@ public class UserUtil {
}
return RolesCkanGroupOrOrg.MEMBER;
}
}