Skip to content
Browse files

Only admins can see the invite form

  • Loading branch information...
1 parent 64d7d46 commit eaddc545a465f01528f0abeaf19994164c324e80 @jamesu jamesu committed Feb 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/invitations_helper.rb
View
2 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.
Something went wrong with that request. Please try again.