Commit b9d547b1 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix/show-sidebar-sub-level-items-for-billing' into 'master'

Override group sidebar links

See merge request gitlab-org/gitlab-ce!16942
parents 41b5bb57 8114a2a8
Pipeline #17154562 failed with stages
in 31 minutes and 4 seconds
module GroupsHelper
def group_nav_link_paths
%w[groups#projects groups#edit ci_cd#show ldap_group_links#index hooks#index audit_events#index pipeline_quota#index]
end
def can_change_group_visibility_level?(group)
can?(current_user, :change_visibility_level, group)
end
......
......@@ -88,7 +88,7 @@
%strong.fly-out-top-item-name
#{ _('Members') }
- if current_user && can?(current_user, :admin_group, @group)
= nav_link(path: %w[groups#projects groups#edit ci_cd#show]) do
= nav_link(path: group_nav_link_paths) do
= link_to edit_group_path(@group) do
.nav-icon-container
= sprite_icon('settings')
......
---
title: Override group sidebar links
merge_request: 16942
author: George Tsiolis
type: fixed
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