Permalink
Browse files

Only admins can see the invite form

  • Loading branch information...
jamesu committed Feb 4, 2010
1 parent 64d7d46 commit eaddc545a465f01528f0abeaf19994164c324e80
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/invitations_helper.rb
@@ -44,7 +44,7 @@ def invitation_sent(invitation)
end
def invite_form(project,invitation)
- if project.editable?(current_user)
+ if project.admin?(current_user)
render :partial => 'invitations/new',
:locals => {
:project => project,

0 comments on commit eaddc54

Please sign in to comment.