From b740d75760372bc2e998ed89b2022fc34c92eba1 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Fri, 6 Mar 2020 07:56:33 -0500 Subject: [PATCH] Stop sending errors to Sentry for anything except for the regular app API user --- api/cora/cora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/cora/cora.php b/api/cora/cora.php index c7a0a4c..13b50bb 100644 --- a/api/cora/cora.php +++ b/api/cora/cora.php @@ -715,7 +715,8 @@ final class cora { if ( $reportable === true && $this->setting->get('sentry_key') !== null && - $this->setting->get('sentry_project_id') !== null + $this->setting->get('sentry_project_id') !== null && + $api_user_id === 1 ) { $data = [ 'event_id' => str_replace('-', '', exec('uuidgen -r')),