mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Merge pull request #28 from internetee/109228160-deleteCandidate_status
109228160 delete candidate status
This commit is contained in:
commit
9d6fc7140d
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ class Domain < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_candidateable?
|
def delete_candidateable?
|
||||||
return false if delete_at > Time.zone.now
|
return false if delete_at.to_date > Date.today
|
||||||
return false if statuses.include?(DomainStatus::DELETE_CANDIDATE)
|
return false if statuses.include?(DomainStatus::DELETE_CANDIDATE)
|
||||||
return false if statuses.include?(DomainStatus::SERVER_DELETE_PROHIBITED)
|
return false if statuses.include?(DomainStatus::SERVER_DELETE_PROHIBITED)
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue