mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Story #104525314 - in some cases treat pendingDeleteConfirmation as pendingDelete no(renew, update, tranfer) pending allowed"
This commit is contained in:
parent
2104cf2f0a
commit
a9c805f2ce
2 changed files with 5 additions and 1 deletions
|
@ -659,7 +659,7 @@ class Domain < ActiveRecord::Base
|
|||
statuses.include?(DomainStatus::PENDING_UPDATE) && !statuses.include?(DomainStatus::FORCE_DELETE)
|
||||
end
|
||||
|
||||
# public api
|
||||
# depricated not used, not valid
|
||||
def update_prohibited?
|
||||
pending_update_prohibited? && pending_delete_prohibited?
|
||||
end
|
||||
|
@ -671,6 +671,7 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
def pending_update_prohibited?
|
||||
(statuses_was & [
|
||||
DomainStatus::PENDING_DELETE_CONFIRMATION,
|
||||
DomainStatus::CLIENT_UPDATE_PROHIBITED,
|
||||
DomainStatus::SERVER_UPDATE_PROHIBITED,
|
||||
DomainStatus::PENDING_CREATE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue