From da337dbfbf21c5e198e2a96c088ab6adcb7442d9 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 24 Jun 2016 11:37:05 +0200 Subject: [PATCH] Disabled acl for dynamic cms pages --- wcfsetup/install/files/acp/templates/pageAdd.tpl | 15 ++++++++++----- .../files/lib/acp/form/PageEditForm.class.php | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) 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(); -- 2.20.1