From a56dc03565238de7cfb29757f62e0ceb772d797e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Mon, 3 Aug 2020 17:45:17 +0300 Subject: [PATCH] Set PaperTrail :whodunnit for all Registrar-related controllers --- app/controllers/epp/base_controller.rb | 1 + app/controllers/registrar/base_controller.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/epp/base_controller.rb b/app/controllers/epp/base_controller.rb index b8d73f8da..525131cf4 100644 --- a/app/controllers/epp/base_controller.rb +++ b/app/controllers/epp/base_controller.rb @@ -20,6 +20,7 @@ module Epp rescue_from StandardError, with: :respond_with_command_failed_error rescue_from AuthorizationError, with: :respond_with_authorization_error rescue_from ActiveRecord::RecordNotFound, with: :respond_with_object_does_not_exist_error + before_action :set_paper_trail_whodunnit protected diff --git a/app/controllers/registrar/base_controller.rb b/app/controllers/registrar/base_controller.rb index 499d44594..54bed977b 100644 --- a/app/controllers/registrar/base_controller.rb +++ b/app/controllers/registrar/base_controller.rb @@ -6,6 +6,7 @@ class Registrar before_action :check_ip_restriction helper_method :depp_controller? helper_method :head_title_sufix + before_action :set_paper_trail_whodunnit protected