forked from External/greenlight
GRN-93: Get rid of false positive exception in production logs (#450)
This commit is contained in:
parent
a7d307aec1
commit
dd4629908c
|
@ -77,7 +77,7 @@ module ApplicationHelper
|
||||||
|
|
||||||
def allow_greenlight_accounts?
|
def allow_greenlight_accounts?
|
||||||
return Rails.configuration.allow_user_signup unless Rails.configuration.loadbalanced_configuration
|
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
|
# No need to retrieve the provider info if the provider is whitelisted
|
||||||
return true if launcher_allow_user_signup_whitelisted?(@user_domain)
|
return true if launcher_allow_user_signup_whitelisted?(@user_domain)
|
||||||
# Proceed with retrieving the provider info
|
# Proceed with retrieving the provider info
|
||||||
|
|
Loading…
Reference in New Issue