Skip to content

Commit

Permalink
fix honor permissions of students (eesast#191)
Browse files Browse the repository at this point in the history
Co-authored-by: zzdhyb <[email protected]>
  • Loading branch information
youyc22 and zzdhybthu authored Sep 11, 2024
1 parent 837980d commit 11fa298
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2952,13 +2952,8 @@
- 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
Expand Down Expand Up @@ -3013,26 +3008,16 @@
- 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 11fa298

Please sign in to comment.