From 89902a7b124954db63d4c8e10b9b3999e2ddeb8b Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 3 Jan 2020 11:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=84=E6=B5=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=97=A0=E6=B3=95=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 1 - app/controllers/shixuns_controller.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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