fix permission check before link

pull/6827/head
Jens Ulferts 8 years ago
parent 5cd1f6c00d
commit f703669d6b
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      app/views/my_projects_overviews/blocks/_members.html.erb

@ -45,7 +45,7 @@ See doc/COPYRIGHT.md for more details.
</p> </p>
</div> </div>
<% end %> <% end %>
<% if current_user.admin? %> <% if current_user.allowed_to?(:manage_members, project) %>
<%= link_to project_members_path(project_id: project.identifier), class: 'button -alt-highlight' do %> <%= link_to project_members_path(project_id: project.identifier), class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i> <i class="button--icon icon-add"></i>
<span class="button--text"><%= t('activerecord.models.member') %></span> <span class="button--text"><%= t('activerecord.models.member') %></span>

Loading…
Cancel
Save