routes: fix API authentication not to use deprecated columns
Fix a regression introduced by 6849a73aec
This commit is contained in:
parent
f685090122
commit
ebb6294682
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue