diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index b48e1c6e3..938d42c2f 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -4,7 +4,6 @@ class GamesController < ApplicationController before_action :find_shixun, only: [:show, :answer, :rep_content, :choose_build, :game_build, :game_status] before_action :allowed, except: [:jupyter] - skip_before_action :check_sign, only: [:picture_display] #require 'iconv' diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index e84e83c71..116c9319e 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -24,7 +24,8 @@ class ShixunsController < ApplicationController before_action :portion_allowed, only: [:copy] before_action :special_allowed, only: [:send_to_course, :search_user_courses] - before_action :shixun_marker, only: [:new, :create] + before_action :shixun_marker, only: [:new, :create + skip_before_action :check_sign, only: [:download_file] ## 获取课程列表 def index