diff options
-rw-r--r-- | app/Controller/BaseController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/BaseController.php b/app/Controller/BaseController.php index 5f6976ad..ae2dc006 100644 --- a/app/Controller/BaseController.php +++ b/app/Controller/BaseController.php @@ -34,7 +34,7 @@ abstract class BaseController extends Base protected function checkWebhookToken() { if ($this->configModel->get('webhook_token') !== $this->request->getStringParam('token')) { - $this->response->text('Not Authorized', 401); + throw AccessForbiddenException::getInstance()->withoutLayout(); } } |