mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Whodunnit helper to distinguish user from epp_user
This commit is contained in:
parent
af97dadfca
commit
b5608c1394
6 changed files with 23 additions and 5 deletions
|
@ -3,6 +3,7 @@ class Epp::CommandsController < ApplicationController
|
|||
include Epp::DomainsHelper
|
||||
include Epp::ContactsHelper
|
||||
include Shared::UserStamper
|
||||
helper WhodunnitHelper
|
||||
|
||||
layout false
|
||||
|
||||
|
@ -35,4 +36,8 @@ class Epp::CommandsController < ApplicationController
|
|||
def update
|
||||
send("update_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
|
||||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
current_epp_user ? "#{current_epp_user.id}-EppUser" : nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue