Use post method instead of get method when invoking the unsetup method from the api...
[arvados.git] / apps / workbench / app / views / users / _show_admin.html.erb
1 <p>As an admin, you can log in as this user. When you&rsquo;ve
2 finished, you will need to log out and log in again with your own
3 account.</p>
4
5 <blockquote>
6 <%= button_to "Log in as #{@object.full_name}", sudo_user_url(id: @object.uuid), class: 'btn btn-primary' %>
7 </blockquote>
8
9 <p>As an admin, you can deactivate this user.</p>
10
11 <blockquote>
12 <%=  link_to "Deactivate #{@object.full_name}", { action: 'unsetup', id: @object.uuid }, { confirm: "Are you sure you want to deactivate #{@object.full_name}?", method: 'post' } %>
13 </blockquote>
14
15