SilverStripe\Versioned\Versioned::canPublish
This function should return true if the current user can publish this record.
It can be overloaded to customise the security model for an application. Denies permission if any of the following conditions is true: - canPublish() on any extension returns false - canEdit() returns false
Signature
public function canPublish([Member
$member = NULL] )
Parameters
$member
— object
Returns
- bool
- True if the current user can publish this record.