mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Let only owning registrar approve transfer, tests refactor
This commit is contained in:
parent
142db654c4
commit
b6ce705748
4 changed files with 61 additions and 32 deletions
|
@ -74,6 +74,8 @@ module EppErrors
|
|||
errors[:epp_errors] ||= []
|
||||
t = errors.generate_message(*msg) if msg.is_a?(Array)
|
||||
t = msg if msg.is_a?(String)
|
||||
errors[:epp_errors] << { code: code, msg: t, value: { val: val, obj: obj } }
|
||||
err = { code: code, msg: t }
|
||||
err[:value] = { val: val, obj: obj } if val.present?
|
||||
errors[:epp_errors] << err
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue