@ -1,7 +1,7 @@
#encoding: UTF-8
class ExerciseBanksController < ApplicationController
before_action :require_login
before_action :find_bank, except: [:choose_shixun]
before_action :find_bank, :bank_visit_auth, except: [:choose_shixun]
before_action :bank_admin, only: [:update]
before_action :commit_shixun_present, only: [:commit_shixun]
@ -1,6 +1,6 @@
class GtopicBanksController < ApplicationController
before_action :find_bank
before_action :find_bank, :bank_visit_auth
before_action :bank_admin, only: [:edit, :update]
def show
class HomeworkBanksController < ApplicationController
before_action :bank_params, only: [:update]
before_action :bank_admin, only: [:update, :destroy, :set_public]
class TaskBanksController < ApplicationController
before_action :bank_visit_auth