mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Story #104525314 - feature conflict, set admin flag from admin controller'
This commit is contained in:
parent
196feeb671
commit
59522cab5a
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ class Admin::PendingDeletesController < AdminController
|
|||
authorize! :update, :pending
|
||||
|
||||
@epp_domain = Epp::Domain.find(params[:domain_id]) # only epp domain has apply pending
|
||||
@epp_domain.is_admin= true
|
||||
if @epp_domain.apply_pending_delete!
|
||||
redirect_to admin_domain_path(@domain.id), notice: t(:pending_applied)
|
||||
else
|
||||
|
@ -16,6 +17,7 @@ class Admin::PendingDeletesController < AdminController
|
|||
def destroy
|
||||
authorize! :destroy, :pending
|
||||
|
||||
@epp_domain.is_admin= true
|
||||
if @domain.clean_pendings!
|
||||
redirect_to admin_domain_path(@domain.id), notice: t(:pending_removed)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue