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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user