From a0b8b3f8b1d858d61d779d55e9e32aeebcfe4cb4 Mon Sep 17 00:00:00 2001 From: Shayna Chambless Date: Mon, 1 Dec 2025 10:01:26 -0800 Subject: [PATCH] email level feature flag --- .../endpoints/organization_detector_anomaly_data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sentry/workflow_engine/endpoints/organization_detector_anomaly_data.py b/src/sentry/workflow_engine/endpoints/organization_detector_anomaly_data.py index 5f6ce8f624480d..2e30348fc5a8f3 100644 --- a/src/sentry/workflow_engine/endpoints/organization_detector_anomaly_data.py +++ b/src/sentry/workflow_engine/endpoints/organization_detector_anomaly_data.py @@ -38,7 +38,9 @@ def get(self, request: Request, organization: Organization, detector_id: str) -> """ Return anomaly detection threshold data (yhat_lower, yhat_upper) for a detector. """ - if not features.has("organizations:anomaly-detection-threshold-data", organization): + if not features.has( + "organizations:anomaly-detection-threshold-data", organization, actor=request.user + ): raise ResourceDoesNotExist try: