clean(api/v2/base_controller): remove potential confusion
This commit is contained in:
parent
52380d5249
commit
ffd6a10618
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class API::V2::BaseController < ApplicationController
|
||||||
def context
|
def context
|
||||||
# new token
|
# new token
|
||||||
if api_token.present?
|
if api_token.present?
|
||||||
{ token: authorization_bearer_token, administrateur_id: api_token.administrateur.id }
|
{ administrateur_id: api_token.administrateur.id }
|
||||||
# web interface (/graphql) give current_administrateur
|
# web interface (/graphql) give current_administrateur
|
||||||
elsif current_administrateur.present?
|
elsif current_administrateur.present?
|
||||||
{ administrateur_id: current_administrateur.id }
|
{ administrateur_id: current_administrateur.id }
|
||||||
|
|
Loading…
Reference in a new issue