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
326e271c
Commit
326e271c
authored
Mar 30, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary checks from `show_administration_nav?`
parent
8b99c49d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
ee/app/helpers/ee/groups_helper.rb
ee/app/helpers/ee/groups_helper.rb
+1
-11
No files found.
ee/app/helpers/ee/groups_helper.rb
View file @
326e271c
...
...
@@ -90,13 +90,7 @@ module EE
end
def
show_administration_nav?
(
group
)
group_sidebar_link?
(
:administration
)
&&
group
.
parent
.
nil?
&&
(
show_saml_in_sidebar?
(
group
)
||
show_usage_quotas_in_sidebar?
||
show_billing_in_sidebar?
)
group
.
parent
.
nil?
&&
can?
(
current_user
,
:admin_group
,
@group
)
end
def
administration_nav_path
(
group
)
...
...
@@ -124,10 +118,6 @@ module EE
links
<<
:epics
end
if
can?
(
current_user
,
:admin_group
,
@group
)
links
<<
:administration
end
if
@group
.
feature_available?
(
:issues_analytics
)
links
<<
:analytics
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