Allow ForceDelete status not to block domain update

This commit is contained in:
Alex Sherman 2020-01-06 16:58:55 +05:00
parent d58abdaea1
commit 851a2d6a2a
3 changed files with 14 additions and 8 deletions

View file

@ -9,7 +9,8 @@ class Epp::Domain < Domain
def manage_permissions
return if is_admin # this bad hack for 109086524, refactor later
return true if is_transfer || is_renewal
return unless update_prohibited? || delete_prohibited?
return unless update_prohibited?
stat = (statuses & (DomainStatus::UPDATE_PROHIBIT_STATES + DomainStatus::DELETE_PROHIBIT_STATES)).first
add_epp_error('2304', 'status', stat, I18n.t(:object_status_prohibits_operation))
throw(:abort)