Change read:me
scope to profile
scope (#30357)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
569b7d2f25
commit
e02d23b549
10 changed files with 68 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Api::V1::Accounts::CredentialsController < Api::BaseController
|
||||
before_action -> { doorkeeper_authorize! :read, :'read:accounts', :'read:me' }, except: [:update]
|
||||
before_action -> { doorkeeper_authorize! :profile, :read, :'read:accounts' }, except: [:update]
|
||||
before_action -> { doorkeeper_authorize! :write, :'write:accounts' }, only: [:update]
|
||||
before_action :require_user!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue