mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Merge branch '109086524-admin-pending-force-update' of http://github.com/internetee/registry into 109086524-admin-pending-force-update
This commit is contained in:
commit
cfcbef915d
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,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