1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-02-16 23:33:43 +01:00

Fix missing destory audit logs for Domain Allows ()

This commit is contained in:
Emelia Smith 2024-04-30 10:48:02 +02:00 committed by Claire
parent 33a50884e5
commit 984d7d3dc8

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