Skip to content

Commit 9685008

Browse files
burtonjonghannagracecnataliey16
authored
Hmt 47/admin user page (#51)
Co-authored-by: hannagracec <[email protected]> Co-authored-by: Natalie <[email protected]>
1 parent b24067c commit 9685008

File tree

10 files changed

+816
-15
lines changed

10 files changed

+816
-15
lines changed

amplify/data/resource.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const schema = a
2626
.default(false)
2727
.authorization((allow) => [
2828
allow.ownerDefinedIn("profileOwner").to(["read"]),
29-
allow.groups(["Admin"]).to(["read", "update"]),
29+
allow.groups(["Admin"]).to(["read", "update", "delete"]),
3030
]),
3131
teamId: a
3232
.id()
@@ -48,6 +48,7 @@ const schema = a
4848
JUDGE_room: a.belongsTo("Room", "JUDGE_roomId"),
4949
})
5050
.authorization((allow) => [
51+
allow.groups(["Admin"]).to(["read", "update"]),
5152
allow.ownerDefinedIn("profileOwner").to(["read", "update"]),
5253
allow.authenticated().to(["read"]),
5354
]),

package-lock.json

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"next": "^14.2.3",
3535
"react": "^18",
3636
"react-dom": "^18",
37+
"react-hook-form": "^7.51.5",
3738
"react-icons": "^5.0.1",
3839
"react-qrcode-logo": "^3.0.0",
3940
"react-toastify": "^10.0.5",

0 commit comments

Comments
 (0)