Page MenuHomeSoftware Heritage

D6212.id.diff
No OneTemporary

D6212.id.diff

diff --git a/swh/web/templates/includes/vault-create-tasks.html b/swh/web/templates/includes/vault-create-tasks.html
--- a/swh/web/templates/includes/vault-create-tasks.html
+++ b/swh/web/templates/includes/vault-create-tasks.html
@@ -8,7 +8,7 @@
{% load swh_templatetags %}
{% if vault_cooking %}
- {% if user.is_staff %}
+ {% if user.is_authenticated and user.is_staff or "swh.vault.git_bare.ui" in user.get_all_permissions %}
<button class="btn btn-default btn-sm dropdown-toggle swh-vault-download" type="button" data-toggle="dropdown">
<i class="mdi mdi-download mdi-fw" aria-hidden="true"></i>
Download

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 12:31 PM (1 w, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221217

Event Timeline