From d74924ea369908af2fa1fa1522ad6a6138fd8a2b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 20 Jan 2020 15:42:22 -0800 Subject: [PATCH] Permissions updates --- .../down.yaml | 40 ++++++++++++++++++ .../up.yaml | 39 ++++++++++++++++++ .../down.yaml | 41 +++++++++++++++++++ .../up.yaml | 40 ++++++++++++++++++ 4 files changed, 160 insertions(+) create mode 100644 hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml create mode 100644 hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml diff --git a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml new file mode 100644 index 000000000..1b6c6d9db --- /dev/null +++ b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/down.yaml @@ -0,0 +1,40 @@ +- args: + role: user + table: + name: bodyshops + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - address1 + - address2 + - city + - country + - created_at + - email + - federal_tax_id + - id + - insurance_vendor_id + - logo_img_path + - md_ro_statuses + - shopname + - state + - state_tax_id + - updated_at + - zip_post + computed_fields: [] + filter: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + role: user + table: + name: bodyshops + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml new file mode 100644 index 000000000..80ca70d5d --- /dev/null +++ b/hasura/migrations/1579547221983_update_permission_user_public_table_bodyshops/up.yaml @@ -0,0 +1,39 @@ +- args: + role: user + table: + name: bodyshops + schema: public + type: drop_select_permission +- args: + permission: + allow_aggregations: false + columns: + - address1 + - address2 + - city + - country + - created_at + - email + - federal_tax_id + - id + - insurance_vendor_id + - logo_img_path + - md_ro_statuses + - shopname + - state + - state_tax_id + - updated_at + - zip_post + computed_fields: [] + filter: + associations: + bodyshop: + associations: + user: + authid: + _eq: X-Hasura-User-Id + role: user + table: + name: bodyshops + schema: public + type: create_select_permission diff --git a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml new file mode 100644 index 000000000..b5b542a8b --- /dev/null +++ b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/down.yaml @@ -0,0 +1,41 @@ +- args: + role: user + table: + name: bodyshops + schema: public + type: drop_update_permission +- args: + permission: + columns: + - address1 + - address2 + - city + - country + - created_at + - email + - federal_tax_id + - insurance_vendor_id + - logo_img_path + - md_ro_statuses + - shopname + - state + - state_tax_id + - updated_at + - zip_post + filter: + associations: + _and: + - user: + authid: + _eq: X-Hasura-User-Id + - active: + _eq: true + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: bodyshops + schema: public + type: create_update_permission diff --git a/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml new file mode 100644 index 000000000..0c9193996 --- /dev/null +++ b/hasura/migrations/1579547230597_update_permission_user_public_table_bodyshops/up.yaml @@ -0,0 +1,40 @@ +- args: + role: user + table: + name: bodyshops + schema: public + type: drop_update_permission +- args: + permission: + columns: + - address1 + - address2 + - city + - country + - created_at + - email + - federal_tax_id + - insurance_vendor_id + - logo_img_path + - md_ro_statuses + - shopname + - state + - state_tax_id + - updated_at + - zip_post + filter: + associations: + bodyshop: + associations: + user: + authid: + _eq: X-Hasura-User-Id + localPresets: + - key: "" + value: "" + set: {} + role: user + table: + name: bodyshops + schema: public + type: create_update_permission