SilverStripe\Versioned\Versioned::canViewVersioned
Determine if there are any additional restrictions on this object for the given reading version.
Override this in a subclass to customise any additional effect that Versioned applies to canView. This is expected to be called by canView, and thus is only responsible for denying access if the default canView would otherwise ALLOW access. Thus it should not be called in isolation as an authoritative permission check. This has the following extension points: - canViewDraft is invoked if Mode = stage and Stage = stage - canViewArchived is invoked if Mode = archive
Signature
public function canViewVersioned([Member
$member = NULL] )
Parameters
$member
— object
Returns
- bool
- False is returned if the current viewing mode denies visibility