explicit about different contexts

This commit is contained in:
simon lehericey 2023-08-03 16:33:30 +02:00
parent f434c6a6ad
commit 24fd12ed70
2 changed files with 20 additions and 6 deletions

View file

@ -75,7 +75,7 @@ class API::V2::Context < GraphQL::Query::Context
def compute_demarche_authorization(demarche)
# procedure_ids and token are passed from graphql controller
(self[:procedure_ids] || []).include?(demarche.id)
self[:procedure_ids].include?(demarche.id)
end
# This is a query AST visitor that we use to check