Commit 7a698603 authored by Douwe Maan's avatar Douwe Maan

Only show "Manage group members" in project member list when user has access

parent 08274557
......@@ -4,10 +4,11 @@
group members
%small
(#{members.count})
.pull-right
= link_to group_group_members_path(@group), class: 'btn' do
= icon('pencil-square-o')
Edit group members
- if can?(current_user, :admin_group_member, @group)
.pull-right
= link_to group_group_members_path(@group), class: 'btn' do
= icon('pencil-square-o')
Manage group members
%ul.content-list
- members.each do |member|
= render 'groups/group_members/group_member', member: member, show_controls: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment