mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
REPP: Check for ident hash presence before contact update
This commit is contained in:
parent
461b7c1d9c
commit
fc816ad67b
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ module Repp
|
|||
end
|
||||
|
||||
def contact_ident_params(required: true)
|
||||
if required
|
||||
if required || !params[:contact][:ident].nil?
|
||||
params.require(:contact).require(:ident).require(%i[ident ident_type ident_country_code])
|
||||
params.require(:contact).require(:ident).permit(:ident, :ident_type, :ident_country_code)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue