From a03fc0fead448ecf792b5db27a7339ea3f732df1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 19 Aug 2024 14:09:23 +1200 Subject: [PATCH] API Standardise extension hooks --- src/Extension/SiteTreeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/SiteTreeExtension.php b/src/Extension/SiteTreeExtension.php index 42b451a..7e82ee9 100644 --- a/src/Extension/SiteTreeExtension.php +++ b/src/Extension/SiteTreeExtension.php @@ -34,7 +34,7 @@ class SiteTreeExtension extends DataExtension * * @return bool|null True if the current user can view this page (or null to defer) */ - public function canView($member) + protected function canView($member) { // Defer if there's a member - this only catches allowing those who aren't members but might be authenticated // with RealMe