Skip to content

Commit bccb7ae

Browse files
dcramercodex
andcommitted
ref(replays): Expand explicit replay scopes
Keep the replay permission maps aligned with the current repo style of listing implied scopes explicitly. This does not change the effective permissions on these endpoints, but it removes a local inconsistency in this PR where replay endpoints relied on hierarchy expansion while nearby scope maps did not. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 1366c6a commit bccb7ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sentry/replays/endpoints/project_replay_details.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
class ReplayDetailsPermission(ProjectPermission):
2222
scope_map = {
23-
"GET": ["project:read"],
24-
"POST": ["project:write"],
25-
"PUT": ["project:write"],
26-
"DELETE": ["project:write"],
23+
"GET": ["project:read", "project:write", "project:admin"],
24+
"POST": ["project:write", "project:admin"],
25+
"PUT": ["project:write", "project:admin"],
26+
"DELETE": ["project:write", "project:admin"],
2727
}
2828

2929

src/sentry/replays/endpoints/project_replay_summary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
class ReplaySummaryPermission(ProjectPermission):
4040
scope_map = {
41-
"GET": ["event:read"],
42-
"POST": ["event:write"],
41+
"GET": ["event:read", "event:write", "event:admin"],
42+
"POST": ["event:write", "event:admin"],
4343
"PUT": [],
4444
"DELETE": [],
4545
}

0 commit comments

Comments
 (0)