mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Story: #104525314 - enable registrantChangeProhibited and enforce in Epp::Domain#update
This commit is contained in:
parent
8744f23928
commit
339885cd3d
4 changed files with 19 additions and 9 deletions
|
@ -16,6 +16,10 @@ class Domain < ActiveRecord::Base
|
|||
has_many :tech_domain_contacts
|
||||
accepts_nested_attributes_for :tech_domain_contacts, allow_destroy: !:tech_change_prohibited?, reject_if: :tech_change_prohibited?
|
||||
|
||||
def registrant_change_prohibited?
|
||||
statuses.include? DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED
|
||||
end
|
||||
|
||||
|
||||
# NB! contacts, admin_contacts, tech_contacts are empty for a new record
|
||||
has_many :domain_contacts, dependent: :destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue