mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
parent
10fca3e816
commit
7e51522585
3 changed files with 18 additions and 2 deletions
|
@ -157,8 +157,10 @@ class Epp::DomainsController < EppController
|
|||
end
|
||||
|
||||
def validate_create
|
||||
@prefix = 'create > create >'
|
||||
requires 'name', 'ns', 'registrant', 'ns > hostAttr'
|
||||
if Domain.nameserver_required?
|
||||
@prefix = 'create > create >'
|
||||
requires 'name', 'ns', 'registrant', 'ns > hostAttr'
|
||||
end
|
||||
|
||||
@prefix = 'extension > create >'
|
||||
mutually_exclusive 'keyData', 'dsData'
|
||||
|
|
|
@ -245,6 +245,10 @@ class Domain < ActiveRecord::Base
|
|||
{ admin_contacts: :registrar }
|
||||
)
|
||||
end
|
||||
|
||||
def nameserver_required?
|
||||
Setting.nameserver_required
|
||||
end
|
||||
end
|
||||
|
||||
def name=(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue