removed themeDisplay set in shared session (as it is not working anymore)
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/custom-portal-handler@126894 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d3fcaf9e60
commit
310fb934bf
|
@ -65,15 +65,13 @@ public class ScopeHelper {
|
|||
_log.info("SETTING CONTEXT .. ");
|
||||
String scopeToSet = "";
|
||||
long userid = Long.parseLong(request.getRemoteUser());
|
||||
|
||||
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
|
||||
request.getPortletSession().setAttribute(WebKeys.THEME_DISPLAY, themeDisplay, PortletSession.APPLICATION_SCOPE);
|
||||
|
||||
User user = null;
|
||||
GCubeGroup currentGroup = null;
|
||||
try {
|
||||
user = UserLocalServiceUtil.getUser(userid);
|
||||
|
||||
|
||||
GroupManager gm = new LiferayGroupManager();
|
||||
long groupId = themeDisplay.getLayout().getGroup().getGroupId();
|
||||
currentGroup = gm.getGroup(groupId);
|
||||
|
|
Loading…
Reference in New Issue