Add check if UpdateProhibited for domain update

This commit is contained in:
Alex Sherman 2021-02-22 17:04:02 +05:00
parent 89c1bcf693
commit aae9e39d35
2 changed files with 22 additions and 1 deletions

View file

@ -465,7 +465,7 @@ class Epp::Domain < Domain
def update(frame, current_user, verify = true)
return super if frame.blank?
if discarded?
if discarded? || statuses_blocks_update?
add_epp_error('2304', nil, nil, 'Object status prohibits operation')
return
end