Interface RequestPolicyInterface
This interface should be implemented by your request policy class.
Namespace: Authorization\Policy
Method Summary
-
canAccess() public
Method to check if the request can be accessed
Method Detail
canAccess() ΒΆ public
canAccess(Authorization\IdentityInterface|null $identity, Cake\Http\ServerRequest $request): boolAuthorization\Policy\ResultInterface
Method to check if the request can be accessed
Parameters
-
Authorization\IdentityInterface|null
$identity Identity
-
Cake\Http\ServerRequest
$request Server Request
Returns
boolAuthorization\Policy\ResultInterface