PermissionCheck
in package
implements
EventSubscriberInterface
For any API requests that correspond to a Doctrine entity ($apiRequest['doctrineClass']), check permissions specified in Civi\API\Annotation\Permission.
Table of Contents
Interfaces
- EventSubscriberInterface
Methods
- checkACLPermission() : bool
- Check API for ACL permission.
- getSubscribedEvents() : array<string|int, mixed>
- onApiAuthorize() : mixed
Methods
checkACLPermission()
Check API for ACL permission.
public
checkACLPermission(array<string|int, mixed> $apiRequest) : bool
Parameters
- $apiRequest : array<string|int, mixed>
Return values
boolgetSubscribedEvents()
public
static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>onApiAuthorize()
public
onApiAuthorize(AuthorizeEvent $event) : mixed
Parameters
- $event : AuthorizeEvent
-
API authorization event.