diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rb index 09fb287bcc4..6b2a8baa1fe 100644 --- a/app/controllers/session_controller.rb +++ b/app/controllers/session_controller.rb @@ -72,7 +72,7 @@ class SessionController < ApplicationController if SiteSetting.must_approve_users? && !user.approved? if SiteSetting.sso_not_approved_url.present? - redirect_to sso_not_approved_url + redirect_to SiteSetting.sso_not_approved_url else render text: I18n.t("sso.account_not_approved"), status: 403 end