Browse Source

Fix missing destory audit logs for Domain Allows (#30125)

pull/1337/head
Emelia Smith 2 years ago committed by Claire
parent
commit
67b2e62331
  1. 2
      app/controllers/admin/domain_allows_controller.rb

2
app/controllers/admin/domain_allows_controller.rb

@ -25,6 +25,8 @@ class Admin::DomainAllowsController < Admin::BaseController
def destroy
authorize @domain_allow, :destroy?
UnallowDomainService.new.call(@domain_allow)
log_action :destroy, @domain_allow
redirect_to admin_instances_path, notice: I18n.t('admin.domain_allows.destroyed_msg')
end

Loading…
Cancel
Save