mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-19 07:27:56 +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
|
.DS_Store
|
||||||
*.mo
|
*.mo
|
||||||
media/CACHE
|
media/CACHE
|
||||||
|
media/custom
|
||||||
media/avatars/*
|
media/avatars/*
|
||||||
!media/avatars/default-non-register.jpg
|
!media/avatars/default-non-register.jpg
|
||||||
!media/avatars/default.png
|
!media/avatars/default.png
|
||||||
|
@ -33,5 +33,11 @@ class ServerInfoView(APIView):
|
|||||||
if DISABLE_SYNC_WITH_ANY_FOLDER:
|
if DISABLE_SYNC_WITH_ANY_FOLDER:
|
||||||
features.append('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
|
info['features'] = features
|
||||||
return info
|
return info
|
||||||
|
Loading…
Reference in New Issue
Block a user