diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-28 17:52:38 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-28 17:52:38 +0200 |
commit | b230335090ee8fa22ab79453e24c1c3c468569df (patch) | |
tree | 71e808df9eb4a976e8866375695b95f3ac900a17 | |
parent | 45acfdd32ace09b8ff4c8905cbeefb3d8001ccc3 (diff) | |
download | gitlab-ce-b230335090ee8fa22ab79453e24c1c3c468569df.tar.gz |
Show Leave button when you're the last owner, so that the error explains the reason
-rw-r--r-- | app/views/dashboard/groups/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/dashboard/groups/index.html.haml b/app/views/dashboard/groups/index.html.haml index b75c11795bd..6ef4d752ac3 100644 --- a/app/views/dashboard/groups/index.html.haml +++ b/app/views/dashboard/groups/index.html.haml @@ -23,7 +23,7 @@ %i.fa.fa-cogs Settings - - if can?(current_user, :destroy_group_member, group_member) + - if can?(current_user, :admin_group_member, group) = link_to leave_group_group_members_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-sm btn btn-grouped", title: 'Leave this group' do %i.fa.fa-sign-out Leave |