Skip to content

Commit 277a513

Browse files
committed
Updates from review
1 parent 274a377 commit 277a513

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

readthedocs/organizations/views/private.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _get_csv_data(self):
221221
def get_context_data(self, **kwargs):
222222
organization = self.get_organization()
223223
context = super().get_context_data(**kwargs)
224-
context['enabled'] = self._is_enabled(organization)
224+
context['enabled'] = self._is_feature_enabled(organization)
225225
context['days_limit'] = self._get_retention_days_limit(organization)
226226
context['filter'] = self.filter
227227
context['AuditLog'] = AuditLog
@@ -242,7 +242,7 @@ def _get_start_date(self):
242242
def _get_queryset(self):
243243
"""Return the queryset without filters."""
244244
organization = self.get_organization()
245-
if not self._is_enabled(organization):
245+
if not self._is_feature_enabled(organization):
246246
return AuditLog.objects.none()
247247
start_date = self._get_start_date()
248248
queryset = AuditLog.objects.filter(
@@ -282,7 +282,7 @@ def _get_retention_days_limit(self, organization):
282282
default=settings.RTD_AUDITLOGS_DEFAULT_RETENTION_DAYS,
283283
)
284284

285-
def _is_enabled(self, organization):
285+
def _is_feature_enabled(self, organization):
286286
return PlanFeature.objects.has_feature(
287287
organization,
288288
type=self.feature_type,

readthedocs/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ def DOCKER_LIMITS(self):
683683
DEFAULT_PRIVACY_LEVEL = 'public'
684684
DEFAULT_VERSION_PRIVACY_LEVEL = 'public'
685685
ALLOW_ADMIN = True
686+
# Enable all features by default,
687+
# otherwise the organization subscription is checked.
686688
RTD_ALL_FEATURES_ENABLED = True
687689

688690
# Organization settings

0 commit comments

Comments
 (0)