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.must_approve_users? && !user.approved?
|
||||||
if SiteSetting.sso_not_approved_url.present?
|
if SiteSetting.sso_not_approved_url.present?
|
||||||
redirect_to sso_not_approved_url
|
redirect_to SiteSetting.sso_not_approved_url
|
||||||
else
|
else
|
||||||
render text: I18n.t("sso.account_not_approved"), status: 403
|
render text: I18n.t("sso.account_not_approved"), status: 403
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue