diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 96c4e3683..d47c9fe1e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,10 +220,10 @@ module ApplicationHelper # 判断用户是否认证 def check_authentication - # return true - # if params[:action] == "on_search" || params[:action] == "apply_trail" # 之所以这样处理是为了避开account页面ajax加载 - # return true - # end + return true + if params[:action] == "on_search" || params[:action] == "apply_trail" # 之所以这样处理是为了避开account页面ajax加载 + return true + end authentication = User.where(:id => User.current.id, :certification => 1).first user_identity = User.current.try(:user_extensions).try(:identity) if user_identity.blank? || authentication.blank?