From 699ac60366ff8d2780c3577958b3e19556f0ff49 Mon Sep 17 00:00:00 2001 From: FranGuam Date: Sun, 7 Apr 2024 11:46:49 +0800 Subject: [PATCH] fix(contest): update permission for contest_team_code --- metadata/tables.yaml | 56 +++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/metadata/tables.yaml b/metadata/tables.yaml index 5adfce7..a095182 100644 --- a/metadata/tables.yaml +++ b/metadata/tables.yaml @@ -1707,10 +1707,16 @@ - language - team_id filter: - contest_team: - contest_team_members: - user_uuid: - _eq: X-Hasura-User-Id + _or: + - contest_team: + contest_team_members: + user_uuid: + _eq: X-Hasura-User-Id + - contest_team: + contest: + contest_managers: + user_uuid: + _eq: X-Hasura-User-Id allow_aggregations: true - role: student permission: @@ -1722,10 +1728,16 @@ - language - team_id filter: - contest_team: - contest_team_members: - user_uuid: - _eq: X-Hasura-User-Id + _or: + - contest_team: + contest_team_members: + user_uuid: + _eq: X-Hasura-User-Id + - contest_team: + contest: + contest_managers: + user_uuid: + _eq: X-Hasura-User-Id allow_aggregations: true - role: teacher permission: @@ -1737,10 +1749,16 @@ - language - team_id filter: - contest_team: - contest_team_members: - user_uuid: - _eq: X-Hasura-User-Id + _or: + - contest_team: + contest_team_members: + user_uuid: + _eq: X-Hasura-User-Id + - contest_team: + contest: + contest_managers: + user_uuid: + _eq: X-Hasura-User-Id allow_aggregations: true - role: user permission: @@ -1752,10 +1770,16 @@ - language - team_id filter: - contest_team: - contest_team_members: - user_uuid: - _eq: X-Hasura-User-Id + _or: + - contest_team: + contest_team_members: + user_uuid: + _eq: X-Hasura-User-Id + - contest_team: + contest: + contest_managers: + user_uuid: + _eq: X-Hasura-User-Id allow_aggregations: true update_permissions: - role: counselor