GRN-93: Get rid of false positive exception in production logs (#450)

This commit is contained in:
Jesus Federico 2019-04-10 15:10:55 -04:00 committed by GitHub
parent a7d307aec1
commit dd4629908c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ module ApplicationHelper
def allow_greenlight_accounts?
return Rails.configuration.allow_user_signup unless Rails.configuration.loadbalanced_configuration
return false unless @user_domain && Rails.configuration.allow_user_signup
return false unless @user_domain && !@user_domain.empty? && Rails.configuration.allow_user_signup
# No need to retrieve the provider info if the provider is whitelisted
return true if launcher_allow_user_signup_whitelisted?(@user_domain)
# Proceed with retrieving the provider info