mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
update onlyoffice always show watermark if enabled
This commit is contained in:
@@ -107,7 +107,7 @@ def get_onlyoffice_dict(request, username, repo_id, file_path, file_id='',
|
|||||||
'can_download': can_download,
|
'can_download': can_download,
|
||||||
'username': username,
|
'username': username,
|
||||||
'onlyoffice_force_save': ONLYOFFICE_FORCE_SAVE,
|
'onlyoffice_force_save': ONLYOFFICE_FORCE_SAVE,
|
||||||
'enable_watermark': ENABLE_WATERMARK and not can_edit,
|
'enable_watermark': ENABLE_WATERMARK,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ONLYOFFICE_JWT_SECRET:
|
if ONLYOFFICE_JWT_SECRET:
|
||||||
|
Reference in New Issue
Block a user