summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Hollingsworth <jhworth.developer@gmail.com>2014-03-06 21:07:02 -0600
committerJason Hollingsworth <jhworth.developer@gmail.com>2014-03-06 21:07:02 -0600
commit9818775cad7eec3bdc11a958a876f5fff1f991fb (patch)
tree6db3a9c27de708c0789dc3f9745587b2388e3c57
parentc4d4481f4c66797434dca6426393e770c9d5785e (diff)
downloadgitlab-ce-9818775cad7eec3bdc11a958a876f5fff1f991fb.tar.gz
Check if any social providers are enabled.
-rw-r--r--app/helpers/profile_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/profile_helper.rb b/app/helpers/profile_helper.rb
index dd9e03d95a8..297ae83d895 100644
--- a/app/helpers/profile_helper.rb
+++ b/app/helpers/profile_helper.rb
@@ -10,7 +10,7 @@ module ProfileHelper
end
def show_profile_social_tab?
- Gitlab.config.omniauth.enabled && !current_user.ldap_user?
+ enabled_social_providers.any? && !current_user.ldap_user?
end
def show_profile_remove_tab?