Merge branch '111237776-updateProhibited-renew' into staging

This commit is contained in:
Stas 2016-02-01 14:49:26 +02:00
commit 3fb12f0588

View file

@ -8,7 +8,7 @@ class Epp::Domain < Domain
before_validation :manage_permissions before_validation :manage_permissions
def manage_permissions def manage_permissions
return if is_admin # this bad hack for 109086524, refactor later return if is_admin # this bad hack for 109086524, refactor later
return true if is_transfer return true if is_transfer || is_renewal
return unless update_prohibited? || delete_prohibited? return unless update_prohibited? || delete_prohibited?
add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation)) add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation))
false false