mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Enable missing before actions in Collection API (#37122)
This commit is contained in:
@@ -9,9 +9,9 @@ class Api::V1Alpha::CollectionsController < Api::BaseController
|
||||
|
||||
before_action :check_feature_enabled
|
||||
|
||||
before_action -> { doorkeeper_authorize! :write, :'write:collections' }, only: [:create]
|
||||
before_action -> { doorkeeper_authorize! :write, :'write:collections' }, only: [:create, :update, :destroy]
|
||||
|
||||
before_action :require_user!, only: [:create]
|
||||
before_action :require_user!, only: [:create, :update, :destroy]
|
||||
|
||||
before_action :set_collection, only: [:show, :update, :destroy]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user