diff --git a/seahub/templates/view_file_base.html b/seahub/templates/view_file_base.html
index 9aadf92e7d..2a8990adc8 100644
--- a/seahub/templates/view_file_base.html
+++ b/seahub/templates/view_file_base.html
@@ -56,8 +56,10 @@
{% if not repo.encrypted %}
+ {% if request.user.permissions.can_add_repo %}
{% endif %}
+ {% endif %}
{% if user_perm == 'rw' %}