Author: hoang_to
Date: 2009-11-16 06:10:22 -0500 (Mon, 16 Nov 2009)
New Revision: 609
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
Log:
GTNPORTAL-99:Remove permission setting tab while edit layout for dashboard
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2009-11-16
10:20:11 UTC (rev 608)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2009-11-16
11:10:22 UTC (rev 609)
@@ -280,7 +280,10 @@
UIMaskWorkspace uiMaskWS =
uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
UIPortalForm portalForm = uiMaskWS.createUIComponent(UIPortalForm.class, null,
"UIPortalForm");
-
portalForm.setPortalOwner(((PortalRequestContext)WebuiRequestContext.getCurrentInstance()).getPortalOwner());
+ portalForm.setPortalOwner(uiPortal.getOwner());
+ if(PortalConfig.USER_TYPE.equals(uiPortal.getOwnerType())){
+ portalForm.removeChildById("PermissionSetting");
+ }
uiMaskWS.setWindowSize(700, -1);
event.getRequestContext().addUIComponentToUpdateByAjax(uiMaskWS);
}
Show replies by date