mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
115693873-job-initiator_added
This commit is contained in:
parent
24aec79ceb
commit
2f9a9bd680
5 changed files with 15 additions and 15 deletions
|
@ -5,7 +5,7 @@ class Admin::PendingUpdatesController < AdminController
|
|||
def update
|
||||
authorize! :update, :pending
|
||||
|
||||
if registrant_verification.domain_registrant_change_confirm!
|
||||
if registrant_verification.domain_registrant_change_confirm!("admin #{current_user.username}")
|
||||
redirect_to admin_domain_path(@domain.id), notice: t(:pending_applied)
|
||||
else
|
||||
redirect_to edit_admin_domain_path(@domain.id), alert: t(:failure)
|
||||
|
@ -14,7 +14,7 @@ class Admin::PendingUpdatesController < AdminController
|
|||
|
||||
def destroy
|
||||
authorize! :destroy, :pending
|
||||
if registrant_verification.domain_registrant_change_reject!
|
||||
if registrant_verification.domain_registrant_change_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)
|
||||
|
|
|
@ -21,7 +21,7 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
|||
domain_name: @domain.name,
|
||||
verification_token: params[:token])
|
||||
if params[:rejected]
|
||||
if @registrant_verification.domain_registrant_change_reject!
|
||||
if @registrant_verification.domain_registrant_change_reject!("email link #{current_user.username}")
|
||||
flash[:notice] = t(:registrant_domain_verification_rejected)
|
||||
redirect_to registrant_domain_update_confirm_path(@domain.id, rejected: true)
|
||||
else
|
||||
|
@ -29,7 +29,7 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
|||
return render 'show'
|
||||
end
|
||||
elsif params[:confirmed]
|
||||
if @registrant_verification.domain_registrant_change_confirm!
|
||||
if @registrant_verification.domain_registrant_change_confirm!("email link #{current_user.username}")
|
||||
flash[:notice] = t(:registrant_domain_verification_confirmed)
|
||||
redirect_to registrant_domain_update_confirm_path(@domain.id, confirmed: true)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue