Skip to content

Commit

Permalink
Merge pull request #1002 from NASA-AMMOS/fix/constraints-delete-permi…
Browse files Browse the repository at this point in the history
…ssions

Add delete permissions for Constraints Table
  • Loading branch information
Mythicaeda authored Jun 27, 2023
2 parents 06fefcd + c4197a1 commit 4963a81
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 4963a81

Please sign in to comment.