1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 01:44:13 +00:00

Update settings.py

This commit is contained in:
孙永强
2025-08-05 16:43:52 +08:00
committed by r350178982
parent 3d52882765
commit 4adae3c7e8
13 changed files with 61 additions and 38 deletions

View File

@@ -19,7 +19,7 @@ class TermsAndConditionsRedirectMiddleware(MiddlewareMixin):
This middleware checks to see if the user is logged in, and if so,
if they have accepted the site terms.
"""
async_mode = False
def process_request(self, request):
"""Process each request to app to ensure terms have been accepted"""
if not config.ENABLE_TERMS_AND_CONDITIONS: