Skip to content

Commit

Permalink
API Standardise extension hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 19, 2024
1 parent d2ef4b9 commit a03fc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/SiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a03fc0f

Please sign in to comment.