From 84ce2abae2e255aa24f642f9f9f3dfddce6a0dd6 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 20 May 2016 09:29:21 +0000 Subject: [PATCH] disabled preview, narrowed edit control buttons git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@128728 82a268e6-3cf1-43bd-a215-b396298e98cf --- src/main/webapp/custom_jsps/html/portlet/dockbar/view.jsp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/view.jsp b/src/main/webapp/custom_jsps/html/portlet/dockbar/view.jsp index 0f428b6..c92d50d 100644 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/view.jsp +++ b/src/main/webapp/custom_jsps/html/portlet/dockbar/view.jsp @@ -189,7 +189,8 @@ String toggleControlsState = GetterUtil.getString(SessionClicks.get(request, "li boolean showAddControls = hasLayoutAddPermission || hasLayoutUpdatePermission || (layoutTypePortlet.isCustomizable() && layoutTypePortlet.isCustomizedView() && hasLayoutCustomizePermission); boolean showEditControls = themeDisplay.isShowLayoutTemplatesIcon() || themeDisplay.isShowPageSettingsIcon(); - boolean showPreviewControls = hasLayoutUpdatePermission || GroupPermissionUtil.contains(permissionChecker, group.getGroupId(), ActionKeys.PREVIEW_IN_DEVICE); + //boolean showPreviewControls = hasLayoutUpdatePermission || GroupPermissionUtil.contains(permissionChecker, group.getGroupId(), ActionKeys.PREVIEW_IN_DEVICE); + boolean showPreviewControls = false; boolean showToggleControls = (!group.hasStagingGroup() || group.isStagingGroup()) && (hasLayoutUpdatePermission || (layoutTypePortlet.isCustomizable() && layoutTypePortlet.isCustomizedView() && hasLayoutCustomizePermission) || PortletPermissionUtil.hasConfigurationPermission(permissionChecker, themeDisplay.getSiteGroupId(), layout, ActionKeys.CONFIGURATION)); %> @@ -224,7 +225,7 @@ String toggleControlsState = GetterUtil.getString(SessionClicks.get(request, "li - +