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:
parent
5ab9489dc3
commit
aa1a2868df
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue