diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -2,11 +2,11 @@ class ReportController < ApplicationController - before_filter :authenticate + before_action :authenticate - before_filter :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize, :show_max_score, :current_score] + before_action :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize, :show_max_score, :current_score] - before_filter(only: [:problem_hof]) { |c| + before_action(only: [:problem_hof]) { |c| return false unless authenticate admin_authorization unless GraderConfiguration["right.user_view_submission"]