Merge pull request #2 from wtsi-hgi/feature/arv-view
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_tab_buttons.html.erb
index 32485f5173939ee89bfef3e122a0f191e38446fe..4ed27346b4e68b75106482adddd1104073fc5003 100644 (file)
@@ -1,7 +1,9 @@
+<% if current_user.andand.is_active %>
   <% if @object.state.in? ['Complete', 'Failed', 'Cancelled', 'Paused'] %>
 
   <%= link_to(copy_pipeline_instance_path('id' => @object.uuid, 'script' => "use_latest", "components" => "use_latest", "pipeline_instance[state]" => "RunningOnServer"),
-      class: 'btn btn-primary', title: 'Re-run with latest options',
+      class: 'btn btn-primary',
+      title: 'Re-run with latest options',
       #data: {toggle: :tooltip, placement: :top}, title: 'Re-run',
       method: :post,
       ) do %>
@@ -42,3 +44,4 @@
       <% end %>
     <% end %>
   <% end %>
+<% end %>