1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

Update file.py

This commit is contained in:
TMHBOFH
2017-05-19 22:30:07 +02:00
committed by GitHub
parent dda3ac0c48
commit 4e9d23f8d0

View File

@@ -96,7 +96,7 @@ except ImportError:
try: try:
from seahub.settings import ENABLE_ONLYOFFICE from seahub.settings import ENABLE_ONLYOFFICE
from seahub.onlyoffice.settings import ONLYOFFICE_APIJS_URL, ONLYOFFICE_FILE_EXTENSION from seahub.onlyoffice.settings import ONLYOFFICE_APIJS_URL, ONLYOFFICE_FILE_EXTENSION, ONLYOFFICE_EDITOR_LANGUAGE_SETTING
except ImportError: except ImportError:
ENABLE_ONLYOFFICE = False ENABLE_ONLYOFFICE = False
@@ -486,6 +486,7 @@ def _file_view(request, repo_id, path):
'callback_url': get_site_scheme_and_netloc().rstrip('/') + reverse('onlyoffice_editor_callback'), 'callback_url': get_site_scheme_and_netloc().rstrip('/') + reverse('onlyoffice_editor_callback'),
'can_edit': can_edit, 'can_edit': can_edit,
'username': username, 'username': username,
'ONLYOFFICE_EDITOR_LANGUAGE_SETTING': ONLYOFFICE_EDITOR_LANGUAGE_SETTING,
}, context_instance=RequestContext(request)) }, context_instance=RequestContext(request))
# check if the user is the owner or not, for 'private share' # check if the user is the owner or not, for 'private share'