Skip to content

Commit dc87fc8

Browse files
Make leaderboard submission super admin only (#279)
1 parent 1c5f13f commit dc87fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/leaderboard/leaderboard-router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ leaderboardRouter.get(
9494
* POST /leaderboard/submit
9595
* Submit and lock in daily leaderboard results, updating tier eligibility
9696
* Body: { day: string, n: number }
97-
* Authorization: ADMIN only (higher privilege than preview)
97+
* Authorization: SUPER ADMIN only (higher privilege than preview)
9898
*/
9999
leaderboardRouter.post(
100100
"/submit",
101-
RoleChecker([Role.Enum.ADMIN]),
101+
RoleChecker([Role.Enum.SUPER_ADMIN]),
102102
async (req, res) => {
103103
const payload = res.locals.payload;
104104
const submittedBy = payload.userId;

0 commit comments

Comments
 (0)