From 04ee52d1adc809acbb17009612aff1f0ee024117 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 19 Dec 2019 14:19:06 +0200 Subject: [PATCH] Added option to ignore parent page ACL --- .../src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php b/system/src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php index 087206cc1..9fed1f504 100644 --- a/system/src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php +++ b/system/src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php @@ -163,7 +163,7 @@ trait PageAuthorsTrait } } - if (null === $authorized) { + if (null === $authorized && $this->getNestedProperty('header.permissions.inherit', true)) { // Authorize against parent page. $parent = $this->parent(); if ($parent && method_exists($parent, 'isParentAuthorized')) {