interface DefaultPermissionChecker (View source)

Allows objects to enforce permissions for the "root" level, where permissions can not be tied to a particular database record.

Objects below the "root" level should use their own can*() implementations instead of this interface.

Methods

public
bool
canEdit(Member $member = null)

Can root be edited?

public
bool
canView(Member $member = null)

Can root be viewed?

public
bool
canDelete(Member $member = null)

Can root be deleted?

public
bool
canCreate(Member $member = null)

Can root objects be created?

Details

bool canEdit(Member $member = null)

Can root be edited?

Parameters

Member $member

Return Value

bool

bool canView(Member $member = null)

Can root be viewed?

Parameters

Member $member

Return Value

bool

bool canDelete(Member $member = null)

Can root be deleted?

Parameters

Member $member

Return Value

bool

bool canCreate(Member $member = null)

Can root objects be created?

Parameters

Member $member

Return Value

bool