1
0
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:
Ryan Cramer
2023-01-26 08:01:41 -05:00
parent bc2749b76c
commit 3094bd952a

View File

@@ -658,7 +658,7 @@ class PagePermissions extends WireData implements Module {
} else if($pagefile) {
if(!$viewable && wireInstanceOf($page, 'RepeaterPage')) {
/** @var RepeaterPage $page */
$viewable = $page->getForPageRoot()->viewable();
$viewable = $page->getForPageRoot()->viewable($checkTemplateFile);
}
if($viewable) {
$viewable = $this->fileViewable($page, $pagefile);