Skip to content

Commit

Permalink
Fix missing destory audit logs for Domain Allows (mastodon#30125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm authored and noellabo committed Jun 26, 2024
1 parent 47d91a2 commit 6eec611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/domain_allows_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def create
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

Expand Down

0 comments on commit 6eec611

Please sign in to comment.