mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +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) {
|
||||
if(!$viewable && wireInstanceOf($page, 'RepeaterPage')) {
|
||||
/** @var RepeaterPage $page */
|
||||
$viewable = $page->getForPageRoot()->viewable();
|
||||
$viewable = $page->getForPageRoot()->viewable($checkTemplateFile);
|
||||
}
|
||||
if($viewable) {
|
||||
$viewable = $this->fileViewable($page, $pagefile);
|
||||
|
Reference in New Issue
Block a user