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 # 系统没有授权