Browse Source

Fix typo

pull/6/head
Ciel Zhao 7 years ago committed by GitHub
parent
commit
6559e1a8cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/contest.js

2
modules/contest.js

@ -498,7 +498,7 @@ app.get('/contest/:id/:pid/download/additional_file', async (req, res) => {
let problem = await Problem.fromID(problem_id); let problem = await Problem.fromID(problem_id);
contest.ended = contest.isEnded(); contest.ended = contest.isEnded();
if (!(contest.isRunning() || contest.idEnded())) { if (!(contest.isRunning() || contest.isEnded())) {
if (await problem.isAllowedUseBy(res.locals.user)) { if (await problem.isAllowedUseBy(res.locals.user)) {
return res.redirect(syzoj.utils.makeUrl(['problem', problem_id, 'download', 'additional_file'])); return res.redirect(syzoj.utils.makeUrl(['problem', problem_id, 'download', 'additional_file']));
} }

Loading…
Cancel
Save