mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Refactor EPP users to API users
This commit is contained in:
parent
b8494993ea
commit
c91c9c8ebf
44 changed files with 154 additions and 150 deletions
|
@ -5,9 +5,9 @@ module Shared::UserStamper
|
|||
return false if obj.nil? || !obj.has_attribute?(:created_by_id && :updated_by_id)
|
||||
|
||||
if obj.new_record?
|
||||
obj.created_by_id = current_epp_user.id
|
||||
obj.created_by_id = current_api_user.id
|
||||
else
|
||||
obj.updated_by_id = current_epp_user.id
|
||||
obj.updated_by_id = current_api_user.id
|
||||
end
|
||||
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue