SilverStripe\RealMe\Extension\SiteTreeExtension
Synopsis
class SiteTreeExtension
extends DataExtension
{
- // members
- private static array $dependencies = ;
- public RealMeService $service;
- // methods
- public bool|null canView()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
Methods
public
- canView() — This function is an extension of the default SiteTree canView(), and allows viewing permissions for a SiteTree object which has allowed a page to be presented to logged in users. With RealMe a logged in user is a user which has authenticated with the identity provider, and we have stored a FLT in session.