Change follow scope to be covered by read and write scopes in REST API (#17678)

Deprecate `follow` scope
This commit is contained in:
Eugen Rochko authored and GitHub committed 2022-03-03 16:13:40 +01:00
1 parent 085f286750
commit 631e495a79
5 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class Api::V1::BlocksController < Api::BaseController
before_action -> { doorkeeper_authorize! :follow, :'read:blocks' }
before_action -> { doorkeeper_authorize! :follow, :read, :'read:blocks' }
before_action :require_user!
after_action :insert_pagination_headers