PermissionChecker
interface PermissionChecker (View source)
Calculates edit / view / delete permissions for one or more objects
Methods
array
canEditMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
mixed
canViewMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the canView information for a number of objects
array
canDeleteMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
Details
array
canEditMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
mixed
canViewMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the canView information for a number of objects
array
canDeleteMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
bool
canDelete(int $id, Member $member = null)
Check delete permission for a single record ID
bool
canEdit(int $id, Member $member = null)
Check edit permission for a single record ID
bool
canView(int $id, Member $member = null)
Check view permission for a single record ID