We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5f13f commit dc87fc8Copy full SHA for dc87fc8
src/services/leaderboard/leaderboard-router.ts
@@ -94,11 +94,11 @@ leaderboardRouter.get(
94
* POST /leaderboard/submit
95
* Submit and lock in daily leaderboard results, updating tier eligibility
96
* Body: { day: string, n: number }
97
- * Authorization: ADMIN only (higher privilege than preview)
+ * Authorization: SUPER ADMIN only (higher privilege than preview)
98
*/
99
leaderboardRouter.post(
100
"/submit",
101
- RoleChecker([Role.Enum.ADMIN]),
+ RoleChecker([Role.Enum.SUPER_ADMIN]),
102
async (req, res) => {
103
const payload = res.locals.payload;
104
const submittedBy = payload.userId;
0 commit comments