class PermissionCheck implements EventSubscriberInterface

For any API requests that correspond to a Doctrine entity ($apiRequest['doctrineClass']), check permissions specified in Civi\API\Annotation\Permission.

Methods

static array
getSubscribedEvents()

No description

onApiAuthorize( $event)

No description

bool
checkACLPermission(array $apiRequest)

Check API for ACL permission.

Details

at line 42
static array getSubscribedEvents()

Return Value

array

at line 56
onApiAuthorize( $event)

Parameters

$event API authorization event.

Exceptions

UnauthorizedException

at line 108
bool checkACLPermission(array $apiRequest)

Check API for ACL permission.

Parameters

array $apiRequest

Return Value

bool