CRM_Utils_Hook::alterAPIPermissions($entity, $action, $params, $permissions);
// Merge permissions for this entity with the defaults
CRM_Utils_Hook::alterAPIPermissions($entity, $action, $params, $permissions);
// Merge permissions for this entity with the defaults