Merge remote-tracking branch 'parent/main' into kbtopic-remove-quote
This commit is contained in:
commit
c538c23ef7
141 changed files with 1552 additions and 779 deletions
|
@ -50,6 +50,10 @@ class Api::BaseController < ApplicationController
|
|||
nil
|
||||
end
|
||||
|
||||
def require_client_credentials!
|
||||
render json: { error: 'This method requires an client credentials authentication' }, status: 403 if doorkeeper_token.resource_owner_id.present?
|
||||
end
|
||||
|
||||
def require_authenticated_user!
|
||||
render json: { error: 'This method requires an authenticated user' }, status: 401 unless current_user
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue