about summary refs log tree commit diff
path: root/app/controllers/api/v1/bookmarks_controller.rb
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-10 15:22:04 +0200
committerThibG <thib@sitedethib.com>2018-08-10 16:49:06 +0200
commit03afc365d530e6d57754ae9dbbdbd0c56431ee02 (patch)
tree58ecbe9865b1cfcca6b08da53e8bb6c5e01e5c9a /app/controllers/api/v1/bookmarks_controller.rb
parent7d1dd59496189d7b6e81585a01aaaae6fd45a737 (diff)
Introduce OAuth scopes for bookmarks
Diffstat (limited to 'app/controllers/api/v1/bookmarks_controller.rb')
-rw-r--r--app/controllers/api/v1/bookmarks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/bookmarks_controller.rb b/app/controllers/api/v1/bookmarks_controller.rb
index 49038807d..1cab3c372 100644
--- a/app/controllers/api/v1/bookmarks_controller.rb
+++ b/app/controllers/api/v1/bookmarks_controller.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 class Api::V1::BookmarksController < Api::BaseController
-  before_action -> { doorkeeper_authorize! :read }
+  before_action -> { doorkeeper_authorize! :read, :'read:bookmarks' }
   before_action :require_user!
   after_action :insert_pagination_headers