Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163667
D6212.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
636 B
Subscribers
None
D6212.id.diff
View Options
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
Details
Attached
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
Attached To
D6212: Add 'swh.vault.git_bare.ui' use role, to display the 'git bare' button on the UI
Event Timeline
Log In to Comment