Commit 326e271c authored by peterhegman's avatar peterhegman

Remove unnecessary checks from `show_administration_nav?`

parent 8b99c49d
......@@ -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
......
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