if (userPortalConfig == null) {
uiApplication.addMessage(new ApplicationMessage("UISiteManagement.msg.portal-not-exist",
new String[] { portalName }));
UIWorkingWorkspace uiWorkingWS = Util.getUIPortalApplication().getChildById(
UIPortalApplication.UI_WORKING_WS_ID);
uiWorkingWS.updatePortletsByName("UserToolbarSitePortlet");
return;
}
UserACL userACL = uicomp.getApplicationComponent(UserACL.class);
if (!userACL.hasEditPermission(userPortalConfig.getPortalConfig())) {