From 63f6964602bb2587d202d31706c885f3809ce7cc Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Tue, 22 Mar 2016 16:01:31 +0000 Subject: [PATCH] fix for request based group VRE git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vo-management/usermanagement-core@126057 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../vomanagement/usermanagement/impl/LiferayGroupManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java b/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java index b77d6ca..0cd4160 100644 --- a/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java +++ b/src/main/java/org/gcube/vomanagement/usermanagement/impl/LiferayGroupManager.java @@ -56,7 +56,7 @@ public class LiferayGroupManager implements GroupManager { if (g != null) { long logoId = LayoutSetLocalServiceUtil.getLayoutSet(g.getGroupId(), true).getLogoId(); if (isVRE(g.getGroupId())) { - return new GCubeGroup(g.getGroupId(), g.getParentGroupId(), g.getName(), g.getDescription(), g.getFriendlyURL(), logoId, null); + return new GCubeGroup(g.getGroupId(), g.getParentGroupId(), g.getName(), g.getDescription(), g.getFriendlyURL(), logoId, null, g.getType()==GroupConstants.TYPE_SITE_RESTRICTED); } else if (isVO(g.getGroupId())) { List vres = new ArrayList(); @@ -64,7 +64,7 @@ public class LiferayGroupManager implements GroupManager { for (Group vre : VREs) { vres.add(mapLRGroup(vre)); } - return new GCubeGroup(g.getGroupId(), g.getParentGroupId(), g.getName(), g.getDescription(), g.getFriendlyURL(), logoId, vres); + return new GCubeGroup(g.getGroupId(), g.getParentGroupId(), g.getName(), g.getDescription(), g.getFriendlyURL(), logoId, vres, g.getType()==GroupConstants.TYPE_SITE_RESTRICTED); } else if (isRootVO(g.getGroupId())) { List vos = new ArrayList(); List children = g.getChildren(true);