Skip to content

Commit a2f80d8

Browse files
committed
quotas: correct multi org system limit
Refs GH-5227
1 parent cec5608 commit a2f80d8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/sentry/quotas/base.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,11 @@ def get_organization_quota(self, organization):
115115

116116
# If there is only a single org, this one org should
117117
# be allowed to consume the entire quota.
118-
if settings.SENTRY_SINGLE_ORGANIZATION:
119-
if system_limit < account_limit:
118+
if settings.SENTRY_SINGLE_ORGANIZATION or account_limit:
119+
if system_limit and system_limit < account_limit:
120120
return (system_limit, 60)
121-
return (account_limit, 3600)
122-
123-
# an account limit is enforced, which is set as a fixed value and cannot
124-
# utilize percentage based limits
125-
elif account_limit:
121+
# an account limit is enforced, which is set as a fixed value and cannot
122+
# utilize percentage based limits
126123
return (account_limit, 3600)
127124

128125
return (

0 commit comments

Comments
 (0)