Skip to content

Commit

Permalink
fix: adjust user_api permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lnikell committed May 16, 2021
1 parent a01c6d5 commit 47b9a62
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions templates/hasura/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,21 @@
_eq: X-Hasura-User-Id
- is_public:
_eq: true
- role: user_api
permission:
columns:
- files
- name
- prompts
filter:
_or:
- shared_to:
shared_to_user_id:
_eq: X-Hasura-User-Id
- is_public:
_eq: true
- owner_id:
_eq: X-Hasura-User-Id
update_permissions:
- role: user
permission:
Expand Down Expand Up @@ -321,6 +336,15 @@
filter:
available_for_user_id:
_eq: X-Hasura-User-Id
- role: user_api
permission:
columns:
- favourite
- id
filter:
available_for_user_id:
_eq: X-Hasura-User-Id
limit: 100
update_permissions:
- role: user
permission:
Expand Down

0 comments on commit 47b9a62

Please sign in to comment.