-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Permits Select operation based on current user
- Loading branch information
1 parent
eb72365
commit e013799
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
packages/backend/migrations/1586004365794_update_permission_user_public_table_user/down.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- password | ||
- created_at | ||
- updated_at | ||
- id | ||
computed_fields: [] | ||
filter: {} | ||
role: user | ||
table: | ||
name: user | ||
schema: public | ||
type: create_select_permission |
25 changes: 25 additions & 0 deletions
25
packages/backend/migrations/1586004365794_update_permission_user_public_table_user/up.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 |