Skip to content

Commit

Permalink
API Standardise extension hooks (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 27, 2024
1 parent 36988da commit 9dfbf06
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 9dfbf06

Please sign in to comment.