mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +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')
|
rollback_history = @domain.json_statuses_history&.[]('admin_store_statuses_history')
|
||||||
dp = ignore_empty_statuses
|
dp = ignore_empty_statuses
|
||||||
@domain.is_admin = true
|
@domain.is_admin = true
|
||||||
PaperTrail.request(enabled: false) do
|
@domain.admin_status_update dp[:statuses]
|
||||||
@domain.admin_status_update dp[:statuses]
|
|
||||||
end
|
|
||||||
|
|
||||||
if @domain.update(dp)
|
if @domain.update(dp)
|
||||||
flash[:notice] = I18n.t('domain_updated')
|
flash[:notice] = I18n.t('domain_updated')
|
||||||
|
|
|
@ -590,8 +590,10 @@ class Domain < ApplicationRecord
|
||||||
|
|
||||||
# special handling for admin changing status
|
# special handling for admin changing status
|
||||||
def admin_status_update(update)
|
def admin_status_update(update)
|
||||||
update_unless_locked_by_registrant(update)
|
PaperTrail.request(enabled: false) do
|
||||||
update_not_by_locked_statuses(update)
|
update_unless_locked_by_registrant(update)
|
||||||
|
update_not_by_locked_statuses(update)
|
||||||
|
end
|
||||||
return unless update
|
return unless update
|
||||||
|
|
||||||
# check for deleted status
|
# check for deleted status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue