# HG changeset patch # User Nattee Niparnan # Date 2016-09-28 06:24:33 # Node ID ad86e593f5b098a440f1303a9e89125069d4239a # Parent ad5ce58ac2808078880d345a5e0a0f8f894d55fc add authorization for show max score 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 @@ -1,6 +1,6 @@ class ReportController < ApplicationController - before_filter :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize] + before_filter :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize, :show_max_score] before_filter(only: [:problem_hof]) { |c| return false unless authenticate