Story #109086524 - force is_admin to skip validation until validations can be fixed

This commit is contained in:
Matt Farnsworth 2015-12-02 13:49:44 +02:00
parent ddd83756d7
commit 4f8f08ecc9
2 changed files with 3 additions and 0 deletions

View file

@ -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