Skip to content

Commit b184318

Browse files
authored
fix(anomaly thresholds): add email level feature flag (#104170)
1 parent 1b4efba commit b184318

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/workflow_engine/endpoints/organization_detector_anomaly_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def get(self, request: Request, organization: Organization, detector_id: str) ->
3838
"""
3939
Return anomaly detection threshold data (yhat_lower, yhat_upper) for a detector.
4040
"""
41-
if not features.has("organizations:anomaly-detection-threshold-data", organization):
41+
if not features.has(
42+
"organizations:anomaly-detection-threshold-data", organization, actor=request.user
43+
):
4244
raise ResourceDoesNotExist
4345

4446
try:

0 commit comments

Comments
 (0)