From c84457e1ed748053089a858719f660eaa7d89fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Zrim=C5=A1ek?= Date: Sun, 23 Dec 2018 21:17:51 +0100 Subject: [PATCH] Prevent archiving of experiments with at least one locked task --- app/views/experiments/_dropdown_actions.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/experiments/_dropdown_actions.html.erb b/app/views/experiments/_dropdown_actions.html.erb index 4bab9f357..9203c425e 100644 --- a/app/views/experiments/_dropdown_actions.html.erb +++ b/app/views/experiments/_dropdown_actions.html.erb @@ -31,7 +31,7 @@ tooltipcontent: I18n.t('tooltips.text.experiment.move') } %> <% end %> - <% if can_manage_experiment?(experiment) %> + <% if can_archive_experiment?(experiment) %>
  • <%= link_to t('experiments.archive.label_title'), archive_experiment_url(experiment), type: 'button',