Skip to content

Commit

Permalink
feat: Permits Select operation based on current user
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Apr 4, 2020
1 parent eb72365 commit e013799
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- args:
role: user
table:
name: user
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- active
- email
- password
- created_at
- updated_at
- id
computed_fields: []
filter: {}
role: user
table:
name: user
schema: public
type: create_select_permission
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- args:
role: user
table:
name: user
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- active
- email
- password
- created_at
- updated_at
- id
computed_fields: []
filter:
id:
_eq: X-Hasura-User-Id
role: user
table:
name: user
schema: public
type: create_select_permission

0 comments on commit e013799

Please sign in to comment.