We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec5608 commit a2f80d8Copy full SHA for a2f80d8
src/sentry/quotas/base.py
@@ -115,14 +115,11 @@ def get_organization_quota(self, organization):
115
116
# If there is only a single org, this one org should
117
# be allowed to consume the entire quota.
118
- if settings.SENTRY_SINGLE_ORGANIZATION:
119
- if system_limit < account_limit:
+ if settings.SENTRY_SINGLE_ORGANIZATION or account_limit:
+ if system_limit and system_limit < account_limit:
120
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:
+ # an account limit is enforced, which is set as a fixed value and cannot
+ # utilize percentage based limits
126
return (account_limit, 3600)
127
128
return (
0 commit comments