Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4c7cdd50
Commit
4c7cdd50
authored
Feb 06, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override group sidebar links
parent
7417a1f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+2
-0
changelogs/unreleased-ee/fix-show-sidebar-sub-level-items-for-billing.yml
...eased-ee/fix-show-sidebar-sub-level-items-for-billing.yml
+5
-0
ee/app/helpers/ee/groups_helper.rb
ee/app/helpers/ee/groups_helper.rb
+14
-0
No files found.
app/helpers/groups_helper.rb
View file @
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
...
...
changelogs/unreleased-ee/fix-show-sidebar-sub-level-items-for-billing.yml
0 → 100644
View file @
4c7cdd50
---
title
:
Override group sidebar links
merge_request
:
4234
author
:
George Tsiolis
type
:
fixed
ee/app/helpers/ee/groups_helper.rb
0 → 100644
View file @
4c7cdd50
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment