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 Ember-ruby committed Jun 9, 2024
1 parent b170c1a commit 6137be3
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 6137be3

Please sign in to comment.