# HG changeset patch # User Nattee Niparnan # Date 2018-03-22 09:26:47 # Node ID 93040f45d6042def280a3ab7158907afa85b1af4 # Parent 19bd5319581a0d7c1c568f5e9dac4702f15bc7c0 # Parent debc8d9f3f7409eb08b52393aab0b7eda4912a31 Merge pull request #21 from nattee/master block report/current_score from normal user 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 @@ -4,7 +4,7 @@ before_filter :authenticate - before_filter :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize, :show_max_score] + before_filter :admin_authorization, only: [:login_stat,:submission_stat, :stuck, :cheat_report, :cheat_scruntinize, :show_max_score, :current_score] before_filter(only: [:problem_hof]) { |c| return false unless authenticate