Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hides the link to remove a user from a project if on Bushido

  • Loading branch information...
commit 8ea625534fac3ced454f729b948e56fced7d9b28 1 parent e7914c0
@sgrove sgrove authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 app/views/users/index.html.erb
View
10 app/views/users/index.html.erb
@@ -4,9 +4,13 @@
<h2>Project members</h2>
<ul>
<% @users.each do |user| %>
- <li><%= user %><%= link_to 'Remove', project_user_path(@project, user),
- :confirm => "Are you sure you want to remove #{user.email} from this project?",
- :method => :delete %></li>
+ <li><%= user %>
+ <% unless Devise.on_bushido? %>
+ <%= link_to 'Remove', project_user_path(@project, user),
+ :confirm => "Are you sure you want to remove #{user.email} from this project?",
+ :method => :delete %>
+ <% end %>
+ </li>
<% end %>
</ul>
<% unless Devise.on_bushido? %>
Please sign in to comment.
Something went wrong with that request. Please try again.