Skip to content

Commit

Permalink
🔒 fix permissions for sopping list ingredients
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Mar 7, 2021
1 parent 1a82c66 commit 19cb7c9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
volumes:
- db_data:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:v1.3.0
image: hasura/graphql-engine:v1.3.3
ports:
- "8080:8080"
depends_on:
Expand Down
9 changes: 7 additions & 2 deletions hasura/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,13 @@
- unit
filter:
shoppingList:
user_id:
_eq: X-Hasura-User-Id
_or:
- user_id:
_eq: X-Hasura-User-Id
- user:
sharingWith:
shared_to_user_id:
_eq: X-Hasura-User-Id
allow_aggregations: true
- table:
schema: public
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"hasura-cli": "^1.3.0-beta.2"
"hasura-cli": "^1.3.3"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1097,10 +1097,10 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"

hasura-cli@^1.3.0-beta.2:
version "1.3.0-beta.2"
resolved "https://registry.yarnpkg.com/hasura-cli/-/hasura-cli-1.3.0-beta.2.tgz#5e02234e07ccae4a4d1d932334cd8f6d0252e518"
integrity sha512-nSUpUHIJVJ4c03oFljnDAB8P75Ai/wQ4cXclaUh8Z90fA07LJfo5yoZVvwAXEZg/GSJRZdjvR2/eGt5t2YhRog==
hasura-cli@^1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/hasura-cli/-/hasura-cli-1.3.3.tgz#8673d1c5748f9d8a05f0adacde6e3b446f0406a4"
integrity sha512-bIZaI+RIjTotqeHJpwByyvVQvS/EDoHdDcizcvFSPKSsh7Zehro9ZwyyPmvtIEvDn1EI3I2s5vxAVOOJrJR5qw==
dependencies:
axios "^0.19.0"
chalk "^2.4.2"
Expand Down

0 comments on commit 19cb7c9

Please sign in to comment.