Skip to content

Commit b395ab8

Browse files
authored
HMT-63 Judging Dashboard (#47)
1 parent 9685008 commit b395ab8

File tree

15 files changed

+577
-3
lines changed

15 files changed

+577
-3
lines changed

amplify/data/resource.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const schema = a
103103
})
104104
.authorization((allow) => [
105105
allow.group("Admin").to(["create", "read", "update", "delete"]),
106-
allow.group("Judge").to(["create", "update"]),
106+
allow.group("Judge").to(["create", "read", "update"]),
107107
]),
108108
Room: a
109109
.model({
@@ -113,7 +113,7 @@ const schema = a
113113
judges: a.hasMany("User", "JUDGE_roomId"),
114114
})
115115
.authorization((allow) => [
116-
allow.group("Admin").to(["read", "update"]),
116+
allow.group("Admin").to(["read", "create", "update"]),
117117
allow.authenticated().to(["read"]),
118118
]),
119119
// For handling a many to many relationship of teams and rooms
@@ -127,7 +127,10 @@ const schema = a
127127
team: a.belongsTo("Team", "teamId"),
128128
room: a.belongsTo("Room", "roomId"),
129129
})
130-
.authorization((allow) => [allow.authenticated().to(["read"])]),
130+
.authorization((allow) => [
131+
allow.authenticated().to(["read"]),
132+
allow.group("Admin").to(["read", "create", "update"]),
133+
]),
131134
// Table to provide metadata for the hackathon
132135
Hackathon: a
133136
.model({

public/svgs/judging/circle_check.svg

Lines changed: 3 additions & 0 deletions
Loading

public/svgs/judging/edit_icon.svg

Lines changed: 5 additions & 0 deletions
Loading

public/svgs/judging/exit_icon.svg

Lines changed: 4 additions & 0 deletions
Loading

public/svgs/judging/filter_arrows.svg

Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

public/svgs/judging/team_icon.svg

Lines changed: 3 additions & 0 deletions
Loading

public/svgs/judging/teams_left.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)