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: