\OwnerPermissionedDataObject
Class OwnerPermissionedDataObject
By default a dataobject will deny permission to anyone that is not an administrator
This class allows it to fall back to using the relation owners can*() methods
Synopsis
class OwnerPermissionedDataObject
extends DataObject
{
- // members
- protected static string $relationOwnerMethod = 'Page';
- // methods
- protected DataObject RelationOwner()
- public void canView()
- public void canEdit()
- public void canDelete()
- public void canCreate()
- protected void askOwnerForPermission()
Hierarchy
Extends
- DataObject
Members
protected
- $relationOwnerMethod