Commit 9818775cad7eec3bdc11a958a876f5fff1f991fb

Authored by Jason Hollingsworth
1 parent c4d4481f

Check if any social providers are enabled.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/profile_helper.rb
@@ -10,7 +10,7 @@ module ProfileHelper @@ -10,7 +10,7 @@ module ProfileHelper
10 end 10 end
11 11
12 def show_profile_social_tab? 12 def show_profile_social_tab?
13 - Gitlab.config.omniauth.enabled && !current_user.ldap_user? 13 + enabled_social_providers.any? && !current_user.ldap_user?
14 end 14 end
15 15
16 def show_profile_remove_tab? 16 def show_profile_remove_tab?