Skip to content

Commit a62a31d

Browse files
authored
fix(app-platform): Allow GET requests for published apps (#14109)
* fix(app-platform): Allow GET requests for published apps
1 parent 9a3e5e3 commit a62a31d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sentry/api/bases/sentryapps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ def has_object_permission(self, request, view, sentry_app):
160160
if sentry_app.owner not in request.user.get_orgs():
161161
raise Http404
162162

163+
# TODO(meredith): make a better way to allow for public
164+
# endpoints. we can't use ensure_scoped_permission now
165+
# that the public endpoint isn't denoted by '()'
166+
if sentry_app.is_published and request.method == 'GET':
167+
return True
168+
163169
return ensure_scoped_permission(
164170
request,
165171
self._scopes_for_sentry_app(sentry_app).get(request.method),

0 commit comments

Comments
 (0)