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

This commit is contained in:
Emelia Smith 2024-04-30 10:48:02 +02:00 committed by GitHub
parent b8f0a50435
commit 81f0002e76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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