mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Story #104525314 - partial revert previous allow destroy of contacts
This commit is contained in:
parent
ef845e4279
commit
196feeb671
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ class Domain < ActiveRecord::Base
|
|||
# TODO: should we user validates_associated :registrant here?
|
||||
|
||||
has_many :admin_domain_contacts
|
||||
accepts_nested_attributes_for :admin_domain_contacts, allow_destroy: !:admin_change_prohibited?, reject_if: :admin_change_prohibited?
|
||||
accepts_nested_attributes_for :admin_domain_contacts, allow_destroy: true, reject_if: :admin_change_prohibited?
|
||||
has_many :tech_domain_contacts
|
||||
accepts_nested_attributes_for :tech_domain_contacts, allow_destroy: !:tech_change_prohibited?, reject_if: :tech_change_prohibited?
|
||||
accepts_nested_attributes_for :tech_domain_contacts, allow_destroy: true, reject_if: :tech_change_prohibited?
|
||||
|
||||
def registrant_change_prohibited?
|
||||
statuses.include? DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue