mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Story #104525314 - EPP user must respect serverDeleteProhibited
This commit is contained in:
parent
1722e00e8c
commit
8a14bf05f8
1 changed files with 2 additions and 2 deletions
|
@ -776,12 +776,12 @@ class Epp::Domain < Domain
|
|||
|
||||
### ABILITIES ###
|
||||
|
||||
# depricated -- this is redundant TODO: try to remove
|
||||
|
||||
def can_be_deleted?
|
||||
begin
|
||||
errors.add(:base, :domain_status_prohibits_operation)
|
||||
return false
|
||||
end if statuses.include?(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
end if (statuses & [DomainStatus::CLIENT_DELETE_PROHIBITED, DomainStatus::SERVER_DELETE_PROHIBITED].any?
|
||||
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue