1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:47:57 +00:00

update middleware

This commit is contained in:
孙永强
2025-08-11 16:53:12 +08:00
committed by r350178982
parent d717d768a9
commit 2bf4c1c395
6 changed files with 1 additions and 9 deletions

View File

@@ -19,7 +19,6 @@ 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: