mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Reject registrant change if serverRegistrantUpdateProhibited
This commit is contained in:
parent
aedfeac459
commit
9d57f347cb
1 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,12 @@ module Actions
|
||||||
return if domain.registrant == new_registrant
|
return if domain.registrant == new_registrant
|
||||||
|
|
||||||
@changes_registrant = true if domain.registrant.ident != new_registrant.ident
|
@changes_registrant = true if domain.registrant.ident != new_registrant.ident
|
||||||
domain.registrant = new_registrant
|
if @changes_registrant && domain.registrant_change_prohibited?
|
||||||
|
domain.add_epp_error(2304, "status", DomainStatus::SERVER_REGISTRANT_CHANGE_PROHIBITED,
|
||||||
|
I18n.t(:object_status_prohibits_operation))
|
||||||
|
else
|
||||||
|
domain.registrant = new_registrant
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def assign_nameserver_modifications
|
def assign_nameserver_modifications
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue