mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-12 01:45:04 +00:00
include customization settings in server-info api
This commit is contained in:
parent
5fde126c16
commit
43406e8109
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,6 +19,7 @@ pylintrc
|
||||
.DS_Store
|
||||
*.mo
|
||||
media/CACHE
|
||||
media/custom
|
||||
media/avatars/*
|
||||
!media/avatars/default-non-register.jpg
|
||||
!media/avatars/default.png
|
||||
|
@ -33,5 +33,11 @@ class ServerInfoView(APIView):
|
||||
if DISABLE_SYNC_WITH_ANY_FOLDER:
|
||||
features.append('disable-sync-with-any-folder')
|
||||
|
||||
if hasattr(settings, 'DESKTOP_CUSTOM_LOGO'):
|
||||
info['desktop-custom-logo'] = settings.MEDIA_URL + getattr(settings, 'DESKTOP_CUSTOM_LOGO')
|
||||
|
||||
if hasattr(settings, 'DESKTOP_CUSTOM_BRAND'):
|
||||
info['desktop-custom-brand'] = getattr(settings, 'DESKTOP_CUSTOM_BRAND')
|
||||
|
||||
info['features'] = features
|
||||
return info
|
||||
|
Loading…
Reference in New Issue
Block a user