Permalink
Browse files

Dont show the project admin or yourself

  • Loading branch information...
1 parent 4006393 commit 6c9e2705ab10f4970179d271597096116b10c374 @skalnik skalnik committed Jun 28, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 app/views/projects/show.html.erb
@@ -177,9 +177,11 @@
<h2 class="users">Users</h2>
<ul class="users">
<% @project.memberships.each do |membership| %>
- <li>
- <%= membership.user.login %> <%= link_to 'remove', membership_path(membership), :confirm => 'Are you sure?', :method => :delete %>
- </li>
+ <% if membership.user != current_user and membership.user != @project.user %>
+ <li>
+ <%= membership.user.login %> <%= link_to 'remove', membership_path(membership), :confirm => 'Are you sure?', :method => :delete %>
+ </li>
+ <% end %>
<% end %>
</ul>
</div>

0 comments on commit 6c9e270

Please sign in to comment.