mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Allow domain renew indefinitely #2610
This commit is contained in:
parent
412f154359
commit
81169e9fbc
2 changed files with 23 additions and 2 deletions
|
@ -430,8 +430,10 @@ class Epp::Domain < Domain
|
|||
# TODO: Check how much time before domain exp date can it be renewed
|
||||
validate_exp_dates(cur_exp_date)
|
||||
|
||||
if (valid_to - Time.zone.now).to_i / 1.day >= Setting.days_to_renew_domain_before_expire
|
||||
add_epp_error('2105', nil, nil, I18n.t('object_is_not_eligible_for_renewal'))
|
||||
if Setting.days_to_renew_domain_before_expire != 0
|
||||
if (valid_to - Time.zone.now).to_i / 1.day >= Setting.days_to_renew_domain_before_expire
|
||||
add_epp_error('2105', nil, nil, I18n.t('object_is_not_eligible_for_renewal'))
|
||||
end
|
||||
end
|
||||
|
||||
return false if errors.any?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue