FIX: sso_not_approved_url not working correctly

This commit is contained in:
Sam 2015-05-30 13:19:07 +10:00
parent 9ce6603864
commit fc2a08731a
1 changed files with 1 additions and 1 deletions

View File

@ -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