fix: no guard against missing account
This commit is contained in:
+2
@@ -59,6 +59,8 @@ module Enterprise::DeviseOverrides::OmniauthCallbacksController
|
||||
return false if account_id.blank?
|
||||
|
||||
account = Account.find_by(id: account_id)
|
||||
|
||||
return false if account.nil?
|
||||
return false unless account.feature_enabled?('saml')
|
||||
|
||||
AccountSamlSettings.find_by(account_id: account_id).present?
|
||||
|
||||
Reference in New Issue
Block a user