115693873-initiator_catches

This commit is contained in:
Stas 2016-06-15 18:27:28 +03:00
parent b03e6c01ac
commit abf736e540
3 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@ class Admin::PendingDeletesController < AdminController
def update
authorize! :update, :pending
if registrant_verification.domain_registrant_delete_confirm!
if registrant_verification.domain_registrant_delete_confirm!("admin #{current_user.username}")
redirect_to admin_domain_path(@domain.id), notice: t(:pending_applied)
else
redirect_to admin_edit_domain_path(@domain.id), alert: t(:failure)
@ -15,7 +15,7 @@ class Admin::PendingDeletesController < AdminController
def destroy
authorize! :destroy, :pending
if registrant_verification.domain_registrant_delete_reject!
if registrant_verification.domain_registrant_delete_reject!("admin #{current_user.username}")
redirect_to admin_domain_path(@domain.id), notice: t(:pending_removed)
else
redirect_to admin_domain_path(@domain.id), alert: t(:failure)