From ebb6294682afc6ce2f177d56bd628bf85673a1e2 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 22 Mar 2022 12:11:23 +0100 Subject: [PATCH] routes: fix API authentication not to use deprecated columns Fix a regression introduced by 6849a73aec9becb1bbf0340e33828bc02e2ca929 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 92b142ca6..5d067883e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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