Added option to ignore parent page ACL

This commit is contained in:
Matias Griese
2019-12-19 14:19:06 +02:00
parent 99e047171f
commit 04ee52d1ad

View File

@@ -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')) {