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})
- if can?(current_user, :admin_group_member, @group)
.pull-right .pull-right
= link_to group_group_members_path(@group), class: 'btn' do = link_to group_group_members_path(@group), class: 'btn' do
= icon('pencil-square-o') = icon('pencil-square-o')
Edit group members 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