Story #109367694 - reset updator_str for pendingUpdate to update requestor requires prior commit e15ab3421d

This commit is contained in:
Matt Farnsworth 2015-12-03 18:30:56 +02:00
parent e15ab3421d
commit 13129214e5

View file

@ -498,6 +498,7 @@ 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.string # 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