Skip to content

Commit 282b90e

Browse files
committed
fix type error
1 parent b19ee64 commit 282b90e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sentry/core/endpoints/organization_index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def _get_from_control(self, request: Request) -> Response:
239239
elif request.auth.organization_id is not None:
240240
queryset = queryset.filter(organization_id=request.auth.organization_id)
241241
elif not (is_active_superuser(request) and request.GET.get("show") == "all"):
242+
assert request.user.id is not None
242243
queryset = queryset.filter(
243244
organization_id__in=OrganizationMemberMapping.objects.filter(
244245
user_id=request.user.id

0 commit comments

Comments
 (0)