mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
This CL include changes in the registrar console that makes it possible to designate an abuse contact in domain WHOIS record, per ICANN's CL&D requirement.
Frontend validation: ensures that only one WHOIS abuse contact exist per registrar. Any existing WHOIS abuse contact will be overridden when a new one is designated. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155289097
This commit is contained in:
parent
275d6ddc10
commit
2846f9c6b9
6 changed files with 162 additions and 9 deletions
|
@ -196,6 +196,8 @@ registry.registrar.ContactSettings.prototype.prepareUpdate =
|
|||
}
|
||||
contact.visibleInWhoisAsAdmin = contact.visibleInWhoisAsAdmin == 'true';
|
||||
contact.visibleInWhoisAsTech = contact.visibleInWhoisAsTech == 'true';
|
||||
contact.visibleInDomainWhoisAsAbuse =
|
||||
contact.visibleInDomainWhoisAsAbuse == 'true';
|
||||
contact.types = '';
|
||||
for (var tNdx in contact.type) {
|
||||
if (contact.type[tNdx]) {
|
||||
|
@ -206,6 +208,14 @@ registry.registrar.ContactSettings.prototype.prepareUpdate =
|
|||
}
|
||||
}
|
||||
delete contact['type'];
|
||||
// Override previous domain WHOIS abuse contact.
|
||||
if (contact.visibleInDomainWhoisAsAbuse) {
|
||||
for (var c in modelCopy.contacts) {
|
||||
if (modelCopy.contacts[c].emailAddress != contact.emailAddress) {
|
||||
modelCopy.contacts[c].visibleInDomainWhoisAsAbuse = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.nextId = contact.emailAddress;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue