Resolved! Exercise 3.6
I am unsure where I am wrong with my .z.pg Spoiler (Highlight to read).z.pg:{[x] i: where .perm.users.user = .z.u;auth:.perm.users.api[first i];$[auth ~ `all;value x;.perm.parseQuery[x] ~ auth; value x; `notAuthorized]}.z.pg:{[x] i: where .perm.users...