mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Story #109086524 - force is_admin to skip validation until validations can be fixed
This commit is contained in:
parent
ddd83756d7
commit
4f8f08ecc9
2 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ class Epp::Domain < Domain
|
|||
|
||||
before_validation :manage_permissions
|
||||
def manage_permissions
|
||||
return if is_admin # this bad hack for 109086524, refactor later
|
||||
return unless update_prohibited? || delete_prohibited?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:object_status_prohibits_operation))
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue