mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
fix params check logic in web settings api, enable empty 'CUSTOM CSS' param (#4127)
This commit is contained in:
@@ -79,7 +79,7 @@ class AdminWebSettings(APIView):
|
||||
error_msg = _(u'value invalid.')
|
||||
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)
|
||||
|
||||
if key in STRING_WEB_SETTINGS and not value:
|
||||
if (key in STRING_WEB_SETTINGS and key != 'CUSTOM_CSS') and not value:
|
||||
error_msg = _(u'value invalid.')
|
||||
return api_error(status.HTTP_400_BAD_REQUEST, error_msg)
|
||||
|
||||
|
Reference in New Issue
Block a user