From: Marcel Werk Date: Fri, 24 Jun 2016 09:37:05 +0000 (+0200) Subject: Disabled acl for dynamic cms pages X-Git-Tag: 3.0.0_Beta_1~1364 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da337dbfbf21c5e198e2a96c088ab6adcb7442d9;p=GitHub%2FWoltLab%2FWCF.git Disabled acl for dynamic cms pages --- diff --git a/wcfsetup/install/files/acp/templates/pageAdd.tpl b/wcfsetup/install/files/acp/templates/pageAdd.tpl index 5a132e68df..6d2f12725a 100644 --- a/wcfsetup/install/files/acp/templates/pageAdd.tpl +++ b/wcfsetup/install/files/acp/templates/pageAdd.tpl @@ -56,7 +56,10 @@
  • {lang}wcf.acp.page.general{/lang}
  • {lang}wcf.acp.page.contents{/lang}
  • {lang}wcf.acp.page.boxes{/lang}
  • -
  • {lang}wcf.acp.page.acl{/lang}
  • + + {if $action != 'edit' || $page->pageType != 'system'} +
  • {lang}wcf.acp.page.acl{/lang}
  • + {/if} {event name='tabMenuTabs'} @@ -362,10 +365,12 @@ -
    - {include file='aclSimple'} -
    - + {if $action != 'edit' || $page->pageType != 'system'} +
    + {include file='aclSimple'} +
    + {/if} +
    diff --git a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php index 94511417af..b067afbe20 100644 --- a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php @@ -178,7 +178,9 @@ class PageEditForm extends PageAddForm { } // save acl - SimpleAclHandler::getInstance()->setValues('com.woltlab.wcf.page', $this->page->pageID, $this->aclValues); + if ($this->page->pageType != 'system') { + SimpleAclHandler::getInstance()->setValues('com.woltlab.wcf.page', $this->page->pageID, $this->aclValues); + } // call saved event $this->saved();