|
|
|
@ -259,6 +259,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
# reacct静态资源加载不需要走这一步
|
|
|
|
|
return if params[:controller] == "main"
|
|
|
|
|
# Find the current user
|
|
|
|
|
Rails.logger.info("current_laboratory is #{current_laboratory} domain is #{request.subdomain}")
|
|
|
|
|
User.current = find_current_user
|
|
|
|
|
uid_logger("user_setup: " + (User.current.logged? ? "#{User.current.try(:login)} (id=#{User.current.try(:id)})" : "anonymous"))
|
|
|
|
|
|
|
|
|
|