mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Fix rubocop errors, add error message for transfer period #2803
This commit is contained in:
parent
6d3f2f611b
commit
aecd61670a
5 changed files with 60 additions and 11 deletions
|
@ -196,6 +196,15 @@ class Epp::DomainsController < EppController
|
|||
end
|
||||
|
||||
def validate_transfer
|
||||
# period element is disabled for now
|
||||
if params[:parsed_frame].css('period').any?
|
||||
epp_errors << {
|
||||
code: '2307',
|
||||
msg: I18n.t(:unimplemented_object_service),
|
||||
value: { obj: 'period' }
|
||||
}
|
||||
end
|
||||
|
||||
requires 'transfer > transfer'
|
||||
|
||||
@prefix = 'transfer > transfer >'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue