remove v1/v2 api token logic
This commit is contained in:
parent
4fa783fa80
commit
0b03ba4d68
4 changed files with 5 additions and 65 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue