diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-13 16:16:51 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-15 13:49:41 +0100 |
commit | 99f995755ef4b445216dd7baae35f5a4846ef30c (patch) | |
tree | 1fdbd02c7cffc2f21faefaa80dea43f6cebecb0a /app/views/groups/group_members/_group_member.html.haml | |
parent | 60df262c38d7c235b483cc1c4beb12f793e0e58a (diff) | |
download | gitlab-ce-99f995755ef4b445216dd7baae35f5a4846ef30c.tar.gz |
Use `group_member` instead of `users_group` or `membership`.
Diffstat (limited to 'app/views/groups/group_members/_group_member.html.haml')
-rw-r--r-- | app/views/groups/group_members/_group_member.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/groups/group_members/_group_member.html.haml b/app/views/groups/group_members/_group_member.html.haml index 5bef796c5a2..2fc91df0931 100644 --- a/app/views/groups/group_members/_group_member.html.haml +++ b/app/views/groups/group_members/_group_member.html.haml @@ -16,11 +16,11 @@ %span.pull-right %strong= member.human_access - if show_controls - - if can?(current_user, :modify, member) + - if can?(current_user, :modify_group_member, member) = button_tag class: "btn-xs btn js-toggle-button", title: 'Edit access level', type: 'button' do %i.fa.fa-pencil-square-o - - if can?(current_user, :destroy, member) + - if can?(current_user, :destroy_group_member, member) - if current_user == member.user = link_to leave_dashboard_group_path(@group), data: { confirm: leave_group_message(@group.name)}, method: :delete, class: "btn-xs btn btn-remove", title: 'Remove user from group' do %i.fa.fa-minus.fa-inverse |