Skip to content
Snippets Groups Projects
Commit 95440eca authored by vlorentz's avatar vlorentz
Browse files

Add 'swh.vault.git_bare.ui' use role, to display the 'git bare' button on the UI

It's always allowed with the API; but still restricted on the UI for now,
while we make sure that are no major issues.
parent b5ed6955
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ See top-level LICENSE file for more information
{% 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment