Merge pull request #7072 from betagouv/fix-graphql-authentication
Corrige l'authentification de l'API GraphQL, pour utiliser les nouvelles relations sur les rôles
This commit is contained in:
commit
afcacfc8d4
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ Rails.application.routes.draw do
|
||||||
# API
|
# API
|
||||||
#
|
#
|
||||||
|
|
||||||
authenticated :user, lambda { |user| user.administrateur_id } do
|
authenticated :user, lambda { |user| user.administrateur? } do
|
||||||
mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql"
|
mount GraphqlPlayground::Rails::Engine, at: "/graphql", graphql_path: "/api/v2/graphql"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue