diff --git a/app/views/contributors/index.html.erb b/app/views/contributors/index.html.erb index ddd3911313..3a6df98745 100644 --- a/app/views/contributors/index.html.erb +++ b/app/views/contributors/index.html.erb @@ -29,8 +29,10 @@

<%= _("No contributors have been defined.") %>

<% end %> - <%= link_to _("Add a contributor"), new_plan_contributor_path(@plan), - class: "btn btn-primary" %> + <% if @plan.editable_by?(current_user.id) %> + <%= link_to _("Add a contributor"), new_plan_contributor_path(@plan), + class: "btn btn-primary" %> + <% end %> <% end %>