mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Story #109367694 - relocate whodunit to capture save of admin approves update
This commit is contained in:
parent
026c50b3ec
commit
6cf2474837
1 changed files with 2 additions and 1 deletions
|
@ -503,10 +503,11 @@ class Epp::Domain < Domain
|
|||
old_registrant_email = DomainMailer.registrant_updated_notification_for_old_registrant(id, deliver_emails)
|
||||
preclean_pendings
|
||||
user = ApiUser.find(pending_json['current_user_id'])
|
||||
::PaperTrail.whodunnit = user.id_role_username # updator str should be the request originator not the approval user
|
||||
frame = Nokogiri::XML(pending_json['frame'])
|
||||
statuses.delete(DomainStatus::PENDING_UPDATE)
|
||||
yield(self) if block_given? # need to skip statuses check here
|
||||
::PaperTrail.whodunnit = user.id_role_username # updator str should be the request originator not the approval user
|
||||
self.save
|
||||
|
||||
return unless update(frame, user, false)
|
||||
clean_pendings!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue