minor fixes

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@129774 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-07-01 15:01:54 +00:00
parent 5ab9489dc3
commit aa1a2868df
2 changed files with 2 additions and 2 deletions

View File

@ -470,7 +470,7 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem
logger.debug("List of organizations was into the session " + toReturn);
}else{
logger.debug("Organizations list wasn't into session, retrieving them");
List<CkanOrganization> organizations = instance.getOrganizationsByUser(username);
List<CkanOrganization> organizations = getCkanUtilsObj().getOrganizationsByUser(username);
for (CkanOrganization ckanOrganization : organizations) {
toReturn.put(ckanOrganization.getTitle(), "/organization/" + ckanOrganization.getName());
}

View File

@ -91,7 +91,7 @@ public class UserUtil {
long userid = userManager.getUserId(username);
// retrieve current group id
long currentGroupId = groupManager.getGroupId(groupName);
long currentGroupId = groupManager.getGroupIdFromInfrastructureScope(currentScope);
logger.debug("Group id is " + currentGroupId + " and scope is " + currentScope);