Skip to content

Commit 641af77

Browse files
committed
Restrict access to totals in PR system
1 parent 7a2f52e commit 641af77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/member/purchase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,12 @@ router.post('/edit/:purchase_id', auth.verifyRank(ranks.pr_whitelist), async (re
327327
}
328328
})
329329

330-
router.get('/total', (req, res) => {
330+
router.get('/total', auth.verifyRank(ranks.admin), (req, res) => {
331331
res.render('pages/member/purchase/total');
332332
});
333333

334334

335-
router.get('/total_plain', (req, res) => {
335+
router.get('/total_plain', auth.verifyRank(ranks.admin), (req, res) => {
336336
const subteam = req.query.subteams ? req.query.subteams.map(num => {
337337
if (num == null || num == 'null') return null;
338338
return Number(num)

0 commit comments

Comments
 (0)