Merge branch 'educoder' into dev_aliyun

dev_aliyun
daiao 5 years ago
commit 94d6e9ceb1

@ -629,7 +629,7 @@ module ApplicationHelper
end end
=end =end
user_e = UserExtensions.where(:user_id => User.current.id).first 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 redirect_to my_account_path
Rails.logger.info("check_authentication end") Rails.logger.info("check_authentication end")
elsif User.current.certification != 1 # 系统没有授权 elsif User.current.certification != 1 # 系统没有授权

Loading…
Cancel
Save