routes: fix API authentication not to use deprecated columns

Fix a regression introduced by 6849a73aec
This commit is contained in:
Pierre de La Morinerie 2022-03-22 12:11:23 +01:00
parent f685090122
commit ebb6294682

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