mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +02:00
Fix issue with protected files not being available to user with access when file was in repeater and page owning repeater had no template file.
This commit is contained in:
@@ -658,7 +658,7 @@ class PagePermissions extends WireData implements Module {
|
|||||||
} else if($pagefile) {
|
} else if($pagefile) {
|
||||||
if(!$viewable && wireInstanceOf($page, 'RepeaterPage')) {
|
if(!$viewable && wireInstanceOf($page, 'RepeaterPage')) {
|
||||||
/** @var RepeaterPage $page */
|
/** @var RepeaterPage $page */
|
||||||
$viewable = $page->getForPageRoot()->viewable();
|
$viewable = $page->getForPageRoot()->viewable($checkTemplateFile);
|
||||||
}
|
}
|
||||||
if($viewable) {
|
if($viewable) {
|
||||||
$viewable = $this->fileViewable($page, $pagefile);
|
$viewable = $this->fileViewable($page, $pagefile);
|
||||||
|
Reference in New Issue
Block a user