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): Authorization\Policy\ResultInterface|bool
Method to check if the request can be accessed
Parameters
-
Authorization\IdentityInterface|null
$identity Identity
-
Cake\Http\ServerRequest
$request Server Request
Returns
Authorization\Policy\ResultInterface|bool