Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fix: permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed May 7, 2024
1 parent c681e3c commit 62b7a08
Showing 1 changed file with 104 additions and 122 deletions.
226 changes: 104 additions & 122 deletions metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,97 +137,115 @@
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter: {}
- role: counselor
permission:
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter: {}
- role: student
permission:
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter: {}
- role: teacher
permission:
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter: {}
- role: user
permission:
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter: {}
update_permissions:
- role: counselor
permission:
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter:
contest_managers:
user_uuid:
Expand All @@ -238,16 +256,19 @@
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter:
contest_managers:
user_uuid:
Expand All @@ -258,16 +279,19 @@
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter:
contest_managers:
user_uuid:
Expand All @@ -278,16 +302,19 @@
columns:
- arena_switch
- code_upload_switch
- description
- end_date
- fullname
- id
- name
- playback_switch
- playground_switch
- start_date
- stream_switch
- team_switch
- client_memory_limit
- game_time
- server_memory_limit
- description
- fullname
- name
- end_date
- start_date
- id
filter:
contest_managers:
user_uuid:
Expand Down Expand Up @@ -410,6 +437,15 @@
- contest_id
- map_id
select_permissions:
- role: anonymous
permission:
columns:
- filename
- name
- team_labels
- contest_id
- map_id
filter: {}
- role: counselor
permission:
columns:
Expand Down Expand Up @@ -1513,23 +1549,13 @@
- role: anonymous
permission:
columns:
- code_id
- code_name
- compile_status
- language
- created_at
- code_id
- language
- team_id
filter:
_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
filter: {}
allow_aggregations: true
- role: counselor
permission:
Expand All @@ -1540,17 +1566,7 @@
- created_at
- language
- team_id
filter:
_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
filter: {}
allow_aggregations: true
- role: student
permission:
Expand All @@ -1561,17 +1577,7 @@
- created_at
- language
- team_id
filter:
_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
filter: {}
allow_aggregations: true
- role: teacher
permission:
Expand All @@ -1582,17 +1588,7 @@
- created_at
- language
- team_id
filter:
_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
filter: {}
allow_aggregations: true
- role: user
permission:
Expand All @@ -1603,17 +1599,7 @@
- created_at
- language
- team_id
filter:
_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
filter: {}
allow_aggregations: true
update_permissions:
- role: counselor
Expand Down Expand Up @@ -1952,7 +1938,11 @@
select_permissions:
- role: anonymous
permission:
columns: []
columns:
- player
- role
- code_id
- team_id
filter: {}
allow_aggregations: true
- role: counselor
Expand Down Expand Up @@ -1980,11 +1970,7 @@
- role
- code_id
- team_id
filter:
contest_team:
contest_team_members:
user_uuid:
_eq: X-Hasura-User-Id
filter: {}
allow_aggregations: true
- role: user
permission:
Expand All @@ -1993,11 +1979,7 @@
- role
- code_id
- team_id
filter:
contest_team:
contest_team_members:
user_uuid:
_eq: X-Hasura-User-Id
filter: {}
allow_aggregations: true
update_permissions:
- role: counselor
Expand Down

0 comments on commit 62b7a08

Please sign in to comment.