1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[guest-user] disable generate file share link when view file

This commit is contained in:
lian
2015-06-27 15:22:48 +08:00
parent 5e9a8a98ce
commit 1e43f2dbe3

View File

@@ -56,8 +56,10 @@
</div>
{% if not repo.encrypted %}
{% if request.user.permissions.can_add_repo %}
<button id="share" data-link="{{ file_shared_link }}" data-token="{{ fileshare.token }}">{% trans "Share" %}</button>
{% endif %}
{% endif %}
{% if user_perm == 'rw' %}
<button id="history" data-url="{% url 'file_revisions' repo.id %}?p={{ path|urlencode }}">{% trans "History" %}</button>