Commit 9818775c authored by Jason Hollingsworth's avatar Jason Hollingsworth

Check if any social providers are enabled.

parent c4d4481f
...@@ -10,7 +10,7 @@ module ProfileHelper ...@@ -10,7 +10,7 @@ module ProfileHelper
end end
def show_profile_social_tab? def show_profile_social_tab?
Gitlab.config.omniauth.enabled && !current_user.ldap_user? enabled_social_providers.any? && !current_user.ldap_user?
end end
def show_profile_remove_tab? def show_profile_remove_tab?
......
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