Skip to content

Commit

Permalink
allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
armenzg committed Jul 29, 2024
1 parent 99fb7be commit 4fef2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sentry/api/endpoints/organization_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
# TODO: Adjust this once we make a decision in the DACI for global views restriction
# Do not add more referres to this list as it is a temporary solution
GLOBAL_VIEW_WHITELIST = ("api.issues.issue_events",)
GLOBAL_VIEW_ALLOWLIST = ("api.issues.issue_events",)


class DiscoverDatasetSplitException(Exception):
Expand Down Expand Up @@ -331,7 +331,7 @@ def get(self, request: Request, organization) -> Response:
# 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
referrer in GLOBAL_VIEW_ALLOWLIST
and not bool(organization.flags.allow_joinleave)
),
)
Expand Down

0 comments on commit 4fef2dc

Please sign in to comment.