FIX: sso_not_approved_url not working correctly
This commit is contained in:
parent
9ce6603864
commit
fc2a08731a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue