From 99fb7be3a91f3b2c1042643feefcca8d6a2e5ab0 Mon Sep 17 00:00:00 2001 From: "Armen Zambrano G." <44410+armenzg@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:53:21 -0400 Subject: [PATCH] Update src/sentry/api/endpoints/organization_events.py Co-authored-by: William Mak --- src/sentry/api/endpoints/organization_events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sentry/api/endpoints/organization_events.py b/src/sentry/api/endpoints/organization_events.py index 7351c49cf81f5..903386ccab6f5 100644 --- a/src/sentry/api/endpoints/organization_events.py +++ b/src/sentry/api/endpoints/organization_events.py @@ -327,6 +327,9 @@ def get(self, request: Request, organization) -> Response: snuba_params, params = self.get_snuba_dataclass( request, organization, + # This is only temporary until we come to a decision on global views + # checking for referrer for an allowlist is a brittle check since referrer + # can easily be set by the caller check_global_views=( referrer in GLOBAL_VIEW_WHITELIST and not bool(organization.flags.allow_joinleave)