Merge pull request #265 from copenhagentruckwash/fix-unauthenticated-bird-voice-webhook
Reinstate authorization check for Bird inbound voice webhook
This commit is contained in:
@@ -38,6 +38,7 @@ class birdVoiceWebhooksRoute
|
||||
$this->post('/bird/voice/calls/webhook/inbound', function (): void {
|
||||
global $response;
|
||||
|
||||
self::requirePermission('modules_bird_voice_call_webhooks_trigger');
|
||||
$client = $this->resolveBirdClient();
|
||||
$payload = $this->readInboundWebhookPayload();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user