Commit 00a71c8a authored by peterhegman's avatar peterhegman

Refactor `administration_nav_path` to use if/elsif

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