@ -372,7 +372,7 @@ class ExerciseBankQuestionsController < ApplicationController
private
def bank_admin
tip_exception(403, "无权限") unless @bank.user_id == current_user.id || current_user.admin?
tip_exception(403, "无权限") unless @exercise.user_id == current_user.id || current_user.admin?
end
def get_exercise
@ -113,7 +113,7 @@ class PollBankQuestionsController < ApplicationController
tip_exception(403, "无权限") unless @poll.user_id == current_user.id || current_user.admin?
def get_poll