mirror of
https://github.com/getgrav/grav.git
synced 2026-07-12 03:33:47 +02:00
Added option to ignore parent page ACL
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user