File tree 4 files changed +19
-14
lines changed
4 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ ARG APP_HOME=/home/node/srv
22
22
WORKDIR $APP_HOME
23
23
24
24
COPY --chown=node:node ./cfg $APP_HOME/cfg
25
+ COPY --chown=node:node ./queries $APP_HOME/queries
25
26
COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib
26
27
27
28
EXPOSE 50051
Original file line number Diff line number Diff line change 23
23
" fulfillment" ,
24
24
" fulfillmentCourier" ,
25
25
" fulfillmentProduct"
26
+ ],
27
+ "customQueries" : [
28
+ {
29
+ "path" : " queries/filter_ownership.aql" ,
30
+ "name" : " filterByOwnership" ,
31
+ "type" : " filter"
32
+ }
26
33
]
27
34
}
28
35
},
263
270
"enabled" : true ,
264
271
"enforce" : true ,
265
272
"database" : " arangoDB" ,
266
- "client" : {
267
- "acs-srv" : {
268
- "address" : " localhost:50061"
269
- },
270
- "user" : {
271
- "address" : " localhost:50051"
272
- }
273
- },
274
273
"urns" : {
275
274
"entity" : " urn:restorecommerce:acs:names:model:entity" ,
276
275
"user" : " urn:restorecommerce:acs:model:user.User" ,
Original file line number Diff line number Diff line change 63
63
}
64
64
},
65
65
"authorization" : {
66
- "acs-srv" : {
67
- "address" : " access-control-srv:50051"
68
- },
69
- "user" : {
70
- "address" : " identity-srv:50051"
71
- },
72
66
"cache" : {
73
67
"url" : " redis://redis:6379"
74
68
}
Original file line number Diff line number Diff line change
1
+ let found = (
2
+ for o in node.meta.owners
3
+ filter o.id == "urn:restorecommerce:acs:names:ownerIndicatoryEntity"
4
+ for arg in @customArguments
5
+ filter o.value == arg.entity
6
+ for ownerInst in o.attributes
7
+ filter ownerInst.id == "urn:restorecommerce:acs:names:ownerInstance"
8
+ filter ownerInst.value in arg.instance
9
+ return true
10
+ )
11
+ filter true in found
You can’t perform that action at this time.
0 commit comments