diff --git a/requirements.txt b/requirements.txt
index 18b193b88e..026e85b8fa 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,7 +2,7 @@ Django==2.2.14
future
captcha
django-statici18n
-django-webpack_loader
+django-webpack_loader==0.7.0
gunicorn
mysqlclient
django-picklefield==2.1.1
diff --git a/seahub/onlyoffice/utils.py b/seahub/onlyoffice/utils.py
index 552954862f..523ef6cfe1 100644
--- a/seahub/onlyoffice/utils.py
+++ b/seahub/onlyoffice/utils.py
@@ -107,7 +107,7 @@ def get_onlyoffice_dict(request, username, repo_id, file_path, file_id='',
'can_download': can_download,
'username': username,
'onlyoffice_force_save': ONLYOFFICE_FORCE_SAVE,
- 'enable_watermark': ENABLE_WATERMARK and not can_edit,
+ 'enable_watermark': ENABLE_WATERMARK,
}
if ONLYOFFICE_JWT_SECRET:
diff --git a/seahub/templates/view_file_wopi.html b/seahub/templates/view_file_wopi.html
index af5f265643..b67c7fb923 100644
--- a/seahub/templates/view_file_wopi.html
+++ b/seahub/templates/view_file_wopi.html
@@ -45,7 +45,9 @@
document.getElementById('office_form').submit();
document.getElementById('office_frame').className = '';
+{% if enable_watermark %}
+{% endif %}