Commit 60f655e7 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-ee!4234
parents 3ed1feaa 4c7cdd50
module GroupsHelper
prepend EE::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
......
---
title: Override group sidebar links
merge_request: 4234
author: George Tsiolis
type: fixed
module EE
module GroupsHelper
extend ::Gitlab::Utils::Override
override :group_nav_link_paths
def group_nav_link_paths
if ::Gitlab::CurrentSettings.should_check_namespace_plan? && can?(current_user, :admin_group, @group)
super + %w[billings#index]
else
super
end
end
end
end
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