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:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user