minor fix for application profile reader

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@132285 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-01 14:45:51 +00:00
parent bc442f5caf
commit 55311493ba
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,8 @@ public class ApplicationProfileScopePerUrlReader {
logger.debug("Request scope for ckan portlet at url " + url);
String scopeToReturn = null;
String scope = ScopeProvider.instance.get();
String scopeToReturn = scope;
String rootScopeForInfrastructure = "/" + PortalContext.getConfiguration().getInfrastructureName();
if(url == null || url.isEmpty()){
@ -89,7 +89,6 @@ public class ApplicationProfileScopePerUrlReader {
}
if (!foundScope || scopeToReturn == null || scopeToReturn.isEmpty()){
logger.debug("Scope is missing for url " + url + ". Returning " + scope);
scopeToReturn = scope;
}
}
else