Skip to content

Commit 13c8a7c

Browse files
authored
fix(aci): Allow alerts:write to use test-fire-actions endpoint (#101211)
1 parent eeef3a2 commit 13c8a7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/workflow_engine/endpoints/organization_test_fire_action.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
from sentry.models.project import Project
1919
from sentry.notifications.notification_action.grouptype import get_test_notification_event_data
2020
from sentry.notifications.types import TEST_NOTIFICATION_ID
21+
from sentry.workflow_engine.endpoints.organization_workflow_index import (
22+
OrganizationWorkflowPermission,
23+
)
2124
from sentry.workflow_engine.endpoints.utils.test_fire_action import test_fire_action
2225
from sentry.workflow_engine.endpoints.validators.base.action import BaseActionValidator
2326
from sentry.workflow_engine.models import Action, Detector
@@ -45,6 +48,7 @@ class OrganizationTestFireActionsEndpoint(OrganizationEndpoint):
4548
"POST": ApiPublishStatus.EXPERIMENTAL,
4649
}
4750
owner = ApiOwner.ECOSYSTEM
51+
permission_classes = (OrganizationWorkflowPermission,)
4852

4953
@extend_schema(
5054
operation_id="Test Fire Actions",

0 commit comments

Comments
 (0)