1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 17:54:44 +02:00

Add getAccessTemplate() method to RepeaterPage class to fix issue where some repeater permissions did not always inherit from the page that owns it, resulting in a case where files in repeater using 'secureFiles' option could be blocked when they should have been available.

This commit is contained in:
Ryan Cramer
2023-02-02 14:19:53 -05:00
parent b74f6ca359
commit dd93de3f91

View File

@@ -278,5 +278,10 @@ class RepeaterPage extends Page {
return $this; return $this;
} }
*/ */
public function getAccessTemplate($type = 'view') {
$p = $this->getForPageRoot();
return $p->id ? $p->getAccessTemplate($type) : parent::getAccessTemplate($type);
}
} }