Skip to content

Commit b0e3e4b

Browse files
authored
fix(replays): Use project event permission class in viewed-by resource (#69036)
Fixes the 403 errors we're seeing.
1 parent bf7faa7 commit b0e3e4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/replays/endpoints/project_replay_viewed_by.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from sentry.api.api_owners import ApiOwner
1010
from sentry.api.api_publish_status import ApiPublishStatus
1111
from sentry.api.base import region_silo_endpoint
12-
from sentry.api.bases.project import ProjectEndpoint
12+
from sentry.api.bases.project import ProjectEndpoint, ProjectEventPermission
1313
from sentry.apidocs.constants import RESPONSE_BAD_REQUEST, RESPONSE_FORBIDDEN, RESPONSE_NOT_FOUND
1414
from sentry.apidocs.examples.replay_examples import ReplayExamples
1515
from sentry.apidocs.parameters import GlobalParams, ReplayParams
@@ -34,6 +34,7 @@ class ReplayViewedByResponse(TypedDict):
3434
class ProjectReplayViewedByEndpoint(ProjectEndpoint):
3535
owner = ApiOwner.REPLAY
3636
publish_status = {"GET": ApiPublishStatus.PUBLIC, "POST": ApiPublishStatus.PRIVATE}
37+
permission_classes = (ProjectEventPermission,)
3738

3839
@extend_schema(
3940
operation_id="Get list of user who have viewed a replay",

0 commit comments

Comments
 (0)