Fetch workspace and user from database (#94)
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -150,4 +150,4 @@ event_triggers:
|
||||
webhook: '{{HASURA_EVENT_HANDLER_URL}}'
|
||||
headers:
|
||||
- name: secret-header
|
||||
value: secret
|
||||
value: secret
|
||||
|
||||
@ -71,4 +71,4 @@ delete_permissions:
|
||||
permission:
|
||||
filter:
|
||||
workspace_id:
|
||||
_eq: x-hasura-workspace-id
|
||||
_eq: x-hasura-workspace-id
|
||||
|
||||
@ -5,3 +5,16 @@ object_relationships:
|
||||
- name: workspace
|
||||
using:
|
||||
foreign_key_constraint_on: workspace_id
|
||||
select_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- created_at
|
||||
- deleted_at
|
||||
- updated_at
|
||||
- id
|
||||
- user_id
|
||||
- workspace_id
|
||||
filter:
|
||||
workspace_id:
|
||||
_eq: X-Hasura-Workspace-Id
|
||||
|
||||
@ -1,3 +1,17 @@
|
||||
table:
|
||||
name: workspaces
|
||||
schema: public
|
||||
select_permissions:
|
||||
- role: user
|
||||
permission:
|
||||
columns:
|
||||
- display_name
|
||||
- domain_name
|
||||
- logo
|
||||
- created_at
|
||||
- deleted_at
|
||||
- updated_at
|
||||
- id
|
||||
filter:
|
||||
id:
|
||||
_eq: X-Hasura-Workspace-Id
|
||||
|
||||
Reference in New Issue
Block a user