mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 11:27:18 +00:00
Add ENABLE_SETTINGS_VIA_WEB setting and remoke CONSTANCE_ENABLED
This commit is contained in:
@@ -2182,7 +2182,7 @@ def sys_sudo_mode(request):
|
||||
def sys_settings(request):
|
||||
"""List and change seahub settings in admin panel.
|
||||
"""
|
||||
if not dj_settings.CONSTANCE_ENABLED:
|
||||
if not dj_settings.ENABLE_SETTINGS_VIA_WEB:
|
||||
raise Http404
|
||||
|
||||
DIGIT_WEB_SETTINGS = (
|
||||
|
Reference in New Issue
Block a user