Skip to content

Commit

Permalink
Fix authorization check in domain blocks controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jul 5, 2022
1 parent 30e7836 commit 7527937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/admin/domain_blocks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class DomainBlocksController < BaseController
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
Expand Down

0 comments on commit 7527937

Please sign in to comment.