Author: kien_nguyen
Date: 2010-05-14 01:04:01 -0400 (Fri, 14 May 2010)
New Revision: 3090
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
Log:
GTNPORTAL-1072 Show protected content when edit page in special case (refactor code to
look clearer)
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-05-14
04:34:06 UTC (rev 3089)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-05-14
05:04:01 UTC (rev 3090)
@@ -199,7 +199,9 @@
int portalMode = Util.getUIPortalApplication().getModeState();
//Check mode of portal, portlet and permission for viewable
- if ((portalMode % 2 == 0 ||
uicomponent.getCurrentPortletMode().equals(PortletMode.EDIT)) &&
uicomponent.hasPermission())
+ if ((portalMode == UIPortalApplication.NORMAL_MODE || portalMode ==
UIPortalApplication.APP_VIEW_EDIT_MODE
+ || portalMode == UIPortalApplication.CONTAINER_VIEW_EDIT_MODE ||
uicomponent.getCurrentPortletMode().equals(PortletMode.EDIT))
+ && uicomponent.hasPermission())
{
PortletInvocationResponse response =
uicomponent.invoke(renderInvocation);
if (response instanceof FragmentResponse)