From 75279377583c6e2aa04cc8d7380c593979630b38 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 5 Jul 2022 11:57:30 +0200 Subject: [PATCH] Fix authorization check in domain blocks controller --- app/controllers/admin/domain_blocks_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/admin/domain_blocks_controller.rb b/app/controllers/admin/domain_blocks_controller.rb index 48e9781d6..32f1f9a5d 100644 --- a/app/controllers/admin/domain_blocks_controller.rb +++ b/app/controllers/admin/domain_blocks_controller.rb @@ -5,6 +5,7 @@ module Admin before_action :set_domain_block, only: [:show, :destroy, :edit, :update] def batch + authorize :domain_block, :create? @form = Form::DomainBlockBatch.new(form_domain_block_batch_params.merge(current_account: current_account, action: action_from_button)) @form.save rescue ActionController::ParameterMissing