mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Allow ForceDelete status not to block domain update
This commit is contained in:
parent
d58abdaea1
commit
851a2d6a2a
3 changed files with 14 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue