Skip to content

Commit c4adea9

Browse files
committed
Requirements: remove django-permissions-policy
`interest-cohort` is not a thing anymore. See #8954 (comment)
1 parent e2f2ba2 commit c4adea9

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

readthedocs/settings/base.py

-7
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ def SESSION_COOKIE_SAMESITE(self):
110110
"/admin/",
111111
)
112112

113-
# Permissions Policy
114-
# https://github.com/adamchainz/django-permissions-policy
115-
PERMISSIONS_POLICY = {
116-
"interest-cohort": [],
117-
}
118-
119113
# Read the Docs
120114
READ_THE_DOCS_EXTENSIONS = ext
121115
RTD_LATEST = 'latest'
@@ -251,7 +245,6 @@ def USE_PROMOS(self): # noqa
251245
'corsheaders.middleware.CorsMiddleware',
252246
'csp.middleware.CSPMiddleware',
253247
'readthedocs.core.middleware.ReferrerPolicyMiddleware',
254-
'django_permissions_policy.PermissionsPolicyMiddleware',
255248
'simple_history.middleware.HistoryRequestMiddleware',
256249
'readthedocs.core.logs.ReadTheDocsRequestMiddleware',
257250
'django_structlog.middlewares.CeleryMiddleware',

requirements/pip.txt

-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ django-debug-toolbar==3.2.4
105105

106106
# For enabling content-security-policy
107107
django-csp==3.7
108-
# For setting the permissions-policy security header
109-
# We can not upgrade to 4.8.0 because it removes `interest-cohort` feature and we are still using it.
110-
django-permissions-policy==4.7.0 # pyup: ignore
111108

112109
django-structlog==2.2.0
113110
structlog==21.5.0

0 commit comments

Comments
 (0)