Skip to content

Commit

Permalink
fix honor permissions of students
Browse files Browse the repository at this point in the history
  • Loading branch information
youyc22 committed Sep 11, 2024
1 parent 0a6b039 commit 00f6bdb
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2952,19 +2952,15 @@
- role: student
permission:
check:
_and:
- student_uuid:
_eq: X-Hasura-User-Id
- created_at:
_lt: "2022-10-05T23:59:59+08:00"
- created_at:
_gt: "2022-10-01T00:00:00+08:00"
student_uuid:
_eq: X-Hasura-User-Id
columns:
- attachment_url
- honor
- statement
- status
- student_uuid
- year
select_permissions:
- role: counselor
permission:
Expand All @@ -2977,6 +2973,7 @@
- status
- student_uuid
- updated_at
- year
filter: {}
- role: student
permission:
Expand All @@ -2989,6 +2986,7 @@
- status
- student_uuid
- updated_at
- year
filter:
student_uuid:
_eq: X-Hasura-User-Id
Expand All @@ -2997,6 +2995,7 @@
permission:
columns:
- status
- year
filter: {}
check: {}
- role: student
Expand All @@ -3007,27 +3006,18 @@
- statement
- status
- student_uuid
- year
filter:
_and:
- student_uuid:
_eq: X-Hasura-User-Id
- updated_at:
_lt: "2022-10-05T23:59:59+08:00"
- updated_at:
_gt: "2022-10-01T00:00:00+08:00"
student_uuid:
_eq: X-Hasura-User-Id
check: {}
delete_permissions:
- role: student
permission:
backend_only: false
filter:
_and:
- student_uuid:
_eq: X-Hasura-User-Id
- created_at:
_lt: "2022-10-05T23:59:59+08:00"
- created_at:
_gt: "2022-10-01T00:00:00+08:00"
student_uuid:
_eq: X-Hasura-User-Id
- table:
name: honor_time
schema: public
Expand Down

0 comments on commit 00f6bdb

Please sign in to comment.