mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 09:13:36 +02:00
Registrant change now requires EPP verify attribute
This commit is contained in:
parent
7d0365974e
commit
d72cbc20f5
21 changed files with 318 additions and 29 deletions
|
@ -9,6 +9,7 @@ class EppController < ApplicationController
|
|||
|
||||
rescue_from CanCan::AccessDenied do |_exception|
|
||||
@errors ||= []
|
||||
|
||||
if @errors.blank?
|
||||
@errors = [{
|
||||
msg: t('errors.messages.epp_authorization_error'),
|
||||
|
@ -50,6 +51,7 @@ class EppController < ApplicationController
|
|||
|
||||
def handle_errors(obj = nil)
|
||||
@errors ||= []
|
||||
|
||||
if obj
|
||||
obj.construct_epp_errors
|
||||
@errors += obj.errors[:epp_errors]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue