Add notifications for statuses deleted by moderators (#17204)

This commit is contained in:
Eugen Rochko
2022-01-17 09:41:33 +01:00
committed by GitHub
parent d5c9feb7b7
commit 14f436c457
59 changed files with 1220 additions and 598 deletions

View File

@ -1,7 +1,9 @@
# frozen_string_literal: true
class Api::V1::Admin::AccountActionsController < Api::BaseController
before_action -> { doorkeeper_authorize! :'admin:write', :'admin:write:accounts' }
protect_from_forgery with: :exception
before_action -> { authorize_if_got_token! :'admin:write', :'admin:write:accounts' }
before_action :require_staff!
before_action :set_account