chore: @current_user is set by authenticate_from_token

This commit is contained in:
simon lehericey 2023-11-08 11:21:09 +01:00
parent daf1443b0c
commit a431287db0

View file

@ -19,12 +19,6 @@ class API::V2::GraphqlController < API::V2::BaseController
private
def append_info_to_payload(payload)
# if on the graphql playground, authenticate via devise
# if authenticate by a v2 or v3 token
# @current_user is set by `api_v2_base_controller.authenticate_administrateur_from_token`
# else it is set on `context.authorized_demarche`
@current_user ||= Current.user
super
payload.merge!(@query_info.presence || {})