remove v1/v2 api token logic

This commit is contained in:
simon lehericey 2023-08-02 19:33:42 +02:00
parent 4fa783fa80
commit 0b03ba4d68
4 changed files with 5 additions and 65 deletions

View file

@ -8,7 +8,6 @@ class API::V2::BaseController < ApplicationController
private
def context
# new token
if api_token.present?
api_token.context
# web interface (/graphql) give current_administrateur
@ -18,12 +17,6 @@ class API::V2::BaseController < ApplicationController
procedure_ids: current_administrateur.procedure_ids,
write_access: true
}
# old token
else
{
token: authorization_bearer_token,
write_access: true
}
end
end