diff --git a/cypress/integration/vault.spec.js b/cypress/integration/vault.spec.js --- a/cypress/integration/vault.spec.js +++ b/cypress/integration/vault.spec.js @@ -132,6 +132,9 @@ cy.contains('button', 'Download') .click(); + cy.contains('button', 'as tarball') + .click(); + // Check error alert is displayed cy.get('.alert-danger') .should('be.visible') 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,33 +8,26 @@ {% load swh_templatetags %} {% if vault_cooking %} - {% if user.is_authenticated and user.is_staff or "swh.vault.git_bare.ui" in user.get_all_permissions %} -
- - -
- {% else %} - - {% endif %} + +