explicit about different contexts
This commit is contained in:
parent
f434c6a6ad
commit
24fd12ed70
2 changed files with 20 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue