mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
parent
bb108efedd
commit
fa52001be6
141 changed files with 1388 additions and 1664 deletions
|
@ -9,7 +9,7 @@ class Epp::Contact < Contact
|
|||
def manage_permissions
|
||||
return unless update_prohibited? || delete_prohibited?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation))
|
||||
false
|
||||
throw(:abort)
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
|
@ -12,7 +12,7 @@ class Epp::Domain < Domain
|
|||
return unless update_prohibited? || delete_prohibited?
|
||||
stat = (statuses & (DomainStatus::UPDATE_PROHIBIT_STATES + DomainStatus::DELETE_PROHIBIT_STATES)).first
|
||||
add_epp_error('2304', 'status', stat, I18n.t(:object_status_prohibits_operation))
|
||||
false
|
||||
throw(:abort)
|
||||
end
|
||||
|
||||
after_validation :validate_contacts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue