Skip to content

Commit

Permalink
Add delete permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythicaeda committed Jun 27, 2023
1 parent 06fefcd commit c4197a1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@ update_permissions:
{ "mission_model": { "plans": { "owner": { "_eq": "X-Hasura-User-Id" } } } } ] }
set:
updated_by: "x-hasura-user-id"
delete_permissions:
- role: user
permission:
filter: {"_or": [
{"plan":{"owner":{"_eq":"X-Hasura-User-Id"}}},
{"plan":{"collaborators":{"collaborator":{"_eq":"X-Hasura-User-Id"}}}},
{"mission_model":{"plans":{"collaborators":{"collaborator":{"_eq":"X-Hasura-User-Id"}}}}},
{"mission_model":{"plans":{"owner":{"_eq":"X-Hasura-User-Id"}}}}]}

0 comments on commit c4197a1

Please sign in to comment.