mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 09:43:17 +00:00
This commit is contained in:
parent
110227ac5e
commit
74e5078795
2 changed files with 61 additions and 38 deletions
|
|
@ -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!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue