Add write permissions for user to people and companies

Add insert, update, delete permissions without any custom checks.

It is assumes that custom checks will be added as a part of the
workspace authorization ticket.
This commit is contained in:
Anders Borch
2023-04-24 11:53:28 +02:00
parent a5bfeef2d6
commit b5cbf219e3
2 changed files with 62 additions and 0 deletions

View File

@ -1,6 +1,17 @@
table:
name: companies
schema: public
insert_permissions:
- role: user
permission:
check: {}
columns:
- id
- workspace_id
- company_domain
- company_name
- created_at
- updated_at
select_permissions:
- role: user
permission:
@ -12,3 +23,19 @@ select_permissions:
- created_at
- updated_at
filter: {}
update_permissions:
- role: user
permission:
columns:
- id
- workspace_id
- company_domain
- company_name
- created_at
- updated_at
filter: {}
check: {}
delete_permissions:
- role: user
permission:
filter: {}

View File

@ -8,6 +8,21 @@ object_relationships:
- name: workspace
using:
foreign_key_constraint_on: workspace_id
insert_permissions:
- role: user
permission:
check: {}
columns:
- company_id
- id
- workspace_id
- city
- email
- firstname
- lastname
- phone
- created_at
- updated_at
select_permissions:
- role: user
permission:
@ -23,3 +38,23 @@ select_permissions:
- created_at
- updated_at
filter: {}
update_permissions:
- role: user
permission:
columns:
- company_id
- id
- workspace_id
- city
- email
- firstname
- lastname
- phone
- created_at
- updated_at
filter: {}
check: {}
delete_permissions:
- role: user
permission:
filter: {}