mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Fix renew restriction #2610
This commit is contained in:
parent
414b906261
commit
cb02ac4c93
3 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
def renewable?
|
||||
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
|
||||
if ((valid_to - Time.zone.now).to_i / 1.day) + 1 >= Setting.days_to_renew_domain_before_expire
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue