PermissionChecker
interface PermissionChecker (View source)
Calculates edit / view / delete permissions for one or more objects
Methods
public
array
canEditMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
public
mixed
canViewMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the canView information for a number of objects
public
array
canDeleteMultiple(array $ids, Member $member = null, bool $useCached = true)
Get the 'can edit' information for a number of SiteTree pages.
public
bool
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