KMP PHP API Reference

ApprovalsControllerPolicy
in package
implements BeforePolicyInterface

Controller-level policy for ApprovalsController.

Approval viewing is open to all authenticated users. Admin actions (allApprovals, reassign) require super user or policy grant.

Table of Contents

Interfaces

BeforePolicyInterface

Methods

before()  : ResultInterface|bool|null
canAllApprovals()  : bool
canAllApprovalsGridData()  : bool
canApprovals()  : bool
canMobileApprovals()  : bool
Mobile approvals view — any authenticated user.
canMobileApprovalsData()  : bool
Mobile approvals data API — any authenticated user.
canReassignApproval()  : bool
canRecordApproval()  : bool
_hasPolicyForUrl()  : bool
Check if user has explicit policy grant for a URL action.

Methods

before()

public before(IdentityInterface|null $user, mixed $resource, string $action) : ResultInterface|bool|null
Parameters
$user : IdentityInterface|null
$resource : mixed
$action : string
Return values
ResultInterface|bool|null
On this page

Search results