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:
@ -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: {}
|
||||
|
||||
@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user