From 10aeb133938b18d9e66edc73de75a0f1bff60c37 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 24 Jul 2019 16:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A7=E7=89=88=E8=AE=A4=E8=AF=81=E6=9C=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index aac2a843..c1943d10 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -629,7 +629,7 @@ module ApplicationHelper end =end user_e = UserExtensions.where(:user_id => User.current.id).first - if User.current.lastname.blank? || user_e.school_id.blank? || user_e.identity.blank? || User.current.mail.blank? + if User.current.profile_completed? redirect_to my_account_path Rails.logger.info("check_authentication end") elsif User.current.certification != 1 # 系统没有授权