mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
Disabled PaperTrail request for admin_store_statuses_history
This commit is contained in:
parent
a7db42b944
commit
1f4733bdde
2 changed files with 5 additions and 5 deletions
|
@ -49,9 +49,7 @@ module Admin
|
|||
rollback_history = @domain.json_statuses_history&.[]('admin_store_statuses_history')
|
||||
dp = ignore_empty_statuses
|
||||
@domain.is_admin = true
|
||||
PaperTrail.request(enabled: false) do
|
||||
@domain.admin_status_update dp[:statuses]
|
||||
end
|
||||
@domain.admin_status_update dp[:statuses]
|
||||
|
||||
if @domain.update(dp)
|
||||
flash[:notice] = I18n.t('domain_updated')
|
||||
|
|
|
@ -590,8 +590,10 @@ class Domain < ApplicationRecord
|
|||
|
||||
# special handling for admin changing status
|
||||
def admin_status_update(update)
|
||||
update_unless_locked_by_registrant(update)
|
||||
update_not_by_locked_statuses(update)
|
||||
PaperTrail.request(enabled: false) do
|
||||
update_unless_locked_by_registrant(update)
|
||||
update_not_by_locked_statuses(update)
|
||||
end
|
||||
return unless update
|
||||
|
||||
# check for deleted status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue