Commit 00a71c8a authored by peterhegman's avatar peterhegman

Refactor `administration_nav_path` to use if/elsif

parent 326e271c
...@@ -94,11 +94,13 @@ module EE ...@@ -94,11 +94,13 @@ module EE
end end
def administration_nav_path(group) def administration_nav_path(group)
return group_saml_providers_path(group) if show_saml_in_sidebar?(group) if show_saml_in_sidebar?(group)
group_saml_providers_path(group)
return group_usage_quotas_path(group) if show_usage_quotas_in_sidebar? elsif show_usage_quotas_in_sidebar?
group_usage_quotas_path(group)
group_billings_path(group) if show_billing_in_sidebar? elsif show_billing_in_sidebar?
group_billings_path(group)
end
end end
private private
......
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