diff --git a/app/views/invitations/_invitations.rhtml b/app/views/invitations/_invitations.rhtml index e160be0..d46fe23 100644 --- a/app/views/invitations/_invitations.rhtml +++ b/app/views/invitations/_invitations.rhtml @@ -1,2 +1,2 @@ <% if @people.id == session[:people_id] -%>You have<% else -%><%= @people.title -%> has<% end -%> <%= pluralize(@people.invitations.size, 'Invitations') rescue '0 Invitations' -%>. -<% if @people and !@people.invitations.empty? -%>
<%= link_to_function "#{image_tag('mail-forward.png')} Send Invitation", "lightboxes['invitation_dialog'].open()" -%><% end -%> +<% if @people and !@people.invitations.empty? and @people.id == session[:people_id] -%>
<%= link_to_function "#{image_tag('mail-forward.png')} Send Invitation", "lightboxes['invitation_dialog'].open()" -%><% end -%>