diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-30 12:19:46 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-30 12:19:46 +0100 |
commit | 45421e1da8953d5faca96f277a142576559f3109 (patch) | |
tree | 8dcb886537cd5247aec75b5e91915259b3cd2ec6 | |
parent | c1b44cfea4fcba1acbb798d934daddcd8de50354 (diff) | |
download | gitlab-ce-45421e1da8953d5faca96f277a142576559f3109.tar.gz |
Updated variable namecontrol-dropdown-permissions
-rw-r--r-- | app/views/layouts/nav/_group_settings.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/layouts/nav/_group_settings.html.haml b/app/views/layouts/nav/_group_settings.html.haml index 1076ac9270a..75275afc0f3 100644 --- a/app/views/layouts/nav/_group_settings.html.haml +++ b/app/views/layouts/nav/_group_settings.html.haml @@ -1,17 +1,17 @@ - if current_user - - can_admin_projects = can?(current_user, :admin_group, @group) + - can_admin_group = can?(current_user, :admin_group, @group) - can_edit = can?(current_user, :admin_group, @group) - member = @group.members.find_by(user_id: current_user.id) - can_leave = member && can?(current_user, :destroy_group_member, member) - - if can_admin_projects || can_edit || can_leave + - if can_admin_group || can_edit || can_leave .controls .dropdown.group-settings-dropdown %a.dropdown-new.btn.btn-default#group-settings-button{href: '#', 'data-toggle' => 'dropdown'} = icon('cog') = icon('caret-down') %ul.dropdown-menu.dropdown-menu-align-right - - if can_admin_projects + - if can_admin_group = nav_link(path: 'groups#projects') do = link_to 'Projects', projects_group_path(@group), title: 'Projects' - if can_edit || can_leave |