mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix authorization check in domain blocks controller
This commit is contained in:
parent
30e7836a19
commit
7527937758
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue