SilverStripe\Versioned\Versioned::canViewStage
Determines canView permissions for the latest version of this object on a specific stage.
Usually the stage is read from . This method should be invoked by user code to check if a record is visible in the given stage. This method should not be called via ->extend('canViewStage'), but rather should be overridden in the extended class.
Signature
public function canViewStage([string
$stage = self::LIVE,
[Member
$member = NULL]] )
Parameters
$stage
— string$member
— object
Returns
- bool