mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Prevent domain deleting if status prohibits it
This commit is contained in:
parent
0096968265
commit
b4602e701c
7 changed files with 48 additions and 3 deletions
|
@ -67,7 +67,6 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
def can_be_deleted?
|
||||
(domain_statuses.pluck(:value) & %W(
|
||||
#{DomainStatus::CLIENT_DELETE_PROHIBITED}
|
||||
#{DomainStatus::SERVER_DELETE_PROHIBITED}
|
||||
)).empty?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue