From c45c3b4037e642284195f9a25608a9da16b14355 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 6 Jun 2023 13:33:03 -0700 Subject: [PATCH] IO-2278 Add permissions for parts dispatch. --- hasura/metadata/tables.yaml | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml index 9aa3b196e..952644a60 100644 --- a/hasura/metadata/tables.yaml +++ b/hasura/metadata/tables.yaml @@ -4585,6 +4585,73 @@ table: name: parts_dispatch_lines schema: public + insert_permissions: + - role: user + permission: + check: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + columns: + - id + - created_at + - updated_at + - jobid + - number + - employeeid + - dispatched_at + - dispatched_by + select_permissions: + - role: user + permission: + columns: + - number + - dispatched_by + - created_at + - dispatched_at + - updated_at + - employeeid + - id + - jobid + filter: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + update_permissions: + - role: user + permission: + columns: + - number + - dispatched_by + - created_at + - dispatched_at + - updated_at + - employeeid + - id + - jobid + filter: + job: + bodyshop: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + check: null - table: name: parts_dispatch_lines schema: public