diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-21 00:41:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 00:41:08 +0200 |
commit | 74e5078795cd5bc8a10e2c22355379ff5ca6d21c (patch) | |
tree | 4a847b7425df9bd3ed2e34521e8aefea6c725a7a /app | |
parent | 110227ac5e77c2be51ef8be4bca614d357c0eb13 (diff) |
Fix #4637 - Re-add missing doorkeeper_authorize for /api/v1/verify_credentials (#4650)
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/v1/accounts/credentials_controller.rb | 1 |
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! |