about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-21 00:41:08 +0200
committerGitHub <noreply@github.com>2017-08-21 00:41:08 +0200
commit74e5078795cd5bc8a10e2c22355379ff5ca6d21c (patch)
tree4a847b7425df9bd3ed2e34521e8aefea6c725a7a /app/controllers
parent110227ac5e77c2be51ef8be4bca614d357c0eb13 (diff)
Fix #4637 - Re-add missing doorkeeper_authorize for /api/v1/verify_credentials (#4650)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/accounts/credentials_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/accounts/credentials_controller.rb b/app/controllers/api/v1/accounts/credentials_controller.rb
index 90a580c33..bea83cd2a 100644
--- a/app/controllers/api/v1/accounts/credentials_controller.rb
+++ b/app/controllers/api/v1/accounts/credentials_controller.rb
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 
 class Api::V1::Accounts::CredentialsController < Api::BaseController
+  before_action -> { doorkeeper_authorize! :read }, except: [:update]
   before_action -> { doorkeeper_authorize! :write }, only: [:update]
   before_action :require_user!