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 @@ ...@@ -4,10 +4,11 @@
group members group members
%small %small
(#{members.count}) (#{members.count})
.pull-right - if can?(current_user, :admin_group_member, @group)
= link_to group_group_members_path(@group), class: 'btn' do .pull-right
= icon('pencil-square-o') = link_to group_group_members_path(@group), class: 'btn' do
Edit group members = icon('pencil-square-o')
Manage group members
%ul.content-list %ul.content-list
- members.each do |member| - members.each do |member|
= render 'groups/group_members/group_member', member: member, show_controls: false = 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