mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Add terms&conditions config
This commit is contained in:
@@ -19,6 +19,8 @@ class TermsAndConditionsRedirectMiddleware(object):
|
||||
|
||||
def process_request(self, request):
|
||||
"""Process each request to app to ensure terms have been accepted"""
|
||||
if not settings.ENABLE_TERMS_AND_CONDITIONS:
|
||||
return None
|
||||
|
||||
LOGGER.debug('termsandconditions.middleware')
|
||||
|
||||
|
Reference in New Issue
Block a user