mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Modified validate dispute case
This commit is contained in:
parent
ad05aa0d36
commit
d10f3d3b2c
1 changed files with 11 additions and 11 deletions
|
@ -261,26 +261,26 @@ module Actions
|
||||||
end
|
end
|
||||||
|
|
||||||
def verify_registrant_change?
|
def verify_registrant_change?
|
||||||
return validate_dispute_case if domain.disputed? && params[:reserved_pw].present?
|
return validate_dispute_case if domain.disputed?
|
||||||
return false if !@changes_registrant || true?(params[:registrant][:verified])
|
return false if !@changes_registrant || true?(params[:registrant][:verified])
|
||||||
return true unless domain.disputed?
|
|
||||||
|
|
||||||
domain.add_epp_error('2304', nil, nil, 'Required parameter missing; reservedpw element ' \
|
|
||||||
'required for dispute domains')
|
|
||||||
|
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_dispute_case
|
def validate_dispute_case
|
||||||
dispute = Dispute.active.find_by(domain_name: domain.name, password: params[:reserved_pw])
|
dispute = Dispute.active.find_by(domain_name: domain.name, password: params[:reserved_pw])
|
||||||
if dispute
|
Dispute.close_by_domain(domain.name) and return false if dispute
|
||||||
Dispute.close_by_domain(domain.name)
|
|
||||||
false
|
if params[:reserved_pw].present?
|
||||||
|
domain.add_epp_error(
|
||||||
|
'2202', nil, nil, 'Invalid authorization information; invalid reserved>pw value'
|
||||||
|
)
|
||||||
else
|
else
|
||||||
domain.add_epp_error('2202', nil, nil,
|
domain.add_epp_error(
|
||||||
'Invalid authorization information; invalid reserved>pw value')
|
'2304', nil, nil, 'Required parameter missing; reservedpw element required for dispute domains'
|
||||||
true
|
)
|
||||||
end
|
end
|
||||||
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit
|
def commit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue