From d585c29a7fc3895dd857531fbb6bada901f553f5 Mon Sep 17 00:00:00 2001 From: lian Date: Wed, 21 Nov 2018 17:51:48 +0800 Subject: [PATCH] add SHARE_LINK_EXPIRE_DAYS_DEFAULT setting --- seahub/settings.py | 4 ++++ seahub/templates/js/templates.html | 2 +- seahub/views/__init__.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/seahub/settings.py b/seahub/settings.py index 27db3674cb..7da40c234f 100644 --- a/seahub/settings.py +++ b/seahub/settings.py @@ -320,6 +320,10 @@ SHARE_LINK_LOGIN_REQUIRED = False SHARE_LINK_EXPIRE_DAYS_MIN = 0 # 0 means no limit SHARE_LINK_EXPIRE_DAYS_MAX = 0 # 0 means no limit +# default expire days should be +# greater than or equal to MIN and less than or equal to MAX +SHARE_LINK_EXPIRE_DAYS_DEFAULT = 0 + # mininum length for the password of a share link SHARE_LINK_PASSWORD_MIN_LENGTH = 8 diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html index f147b98e8e..d17ad47f2a 100644 --- a/seahub/templates/js/templates.html +++ b/seahub/templates/js/templates.html @@ -1205,7 +1205,7 @@ {% trans "Add auto expiration"%}