diff --git a/app/controllers/trainings_controller.rb b/app/controllers/trainings_controller.rb index 930efbb7..dfb7c716 100644 --- a/app/controllers/trainings_controller.rb +++ b/app/controllers/trainings_controller.rb @@ -5,10 +5,10 @@ class TrainingsController < ApplicationController skip_before_filter :verify_signature, only: [:show, :create, :test] - # ROOT_URL = ENV["wechat_url"] || "#{Setting.protocol}://#{Setting.host_name}" - # - # before_filter :authenticate, except: [:auth, :auth_callback, :pay_callback] - # + ROOT_URL = ENV["wechat_url"] || "#{Setting.protocol}://#{Setting.host_name}" + + before_filter :authenticate, except: [:auth, :auth_callback, :pay_callback] + before_filter :find_tag_id before_filter :find_training, only: [:show, :test]