From dd4629908ccce2733adbbb3c484e30134436e136 Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Wed, 10 Apr 2019 15:10:55 -0400 Subject: [PATCH] GRN-93: Get rid of false positive exception in production logs (#450) --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f0bc167f..0de2a1c8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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