private boolean hasPageCreationPermission() throws Exception
{
UIPortal currentPortal = Util.getUIPortal();
UserACL userACL = Util.getUIPortalApplication().getApplicationComponent(UserACL.class);
PageNavigation selectedNavigation = currentPortal.getSelectedNavigation();
if (PortalConfig.PORTAL_TYPE.equals(selectedNavigation.getOwnerType()))
{
return userACL.hasEditPermissionOnPortal(currentPortal.getOwnerType(), currentPortal.getOwner(), currentPortal.getEditPermission());
}
return userACL.hasEditPermission(selectedNavigation);