Skip to content

Commit

Permalink
Make Groups viewable when a non-member
Browse files Browse the repository at this point in the history
  • Loading branch information
zr2d2 committed May 8, 2012
1 parent a59b623 commit 4aa64f1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/views/groups/_show_body.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,13 @@

</table>

<% if @membership.is_leader? %>
<% if !@membership.nil? && @membership.is_leader? %>
<b>Add Member</b>
<%= form_for([@group, @group.memberships.new]) do |f| %>
<%= f.collection_select :user_id, User.all - @group.all_users, :id, :name %>
<%= hidden_field_tag 'autoconfirm', true %>
<%= f.submit %>
<% end %>
<% end %>
<% if @membership.is_leader? %>

<br /><br />

Expand Down

0 comments on commit 4aa64f1

Please sign in to comment.