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