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:
Paul Chavard 2022-03-22 12:47:07 +01:00 committed by GitHub
commit afcacfc8d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ Rails.application.routes.draw do
# 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"
end