Browse Source

Merge branch 'master' of https://github.com/syzoj/syzoj

pull/6/head
Pisces000221 7 years ago
parent
commit
a1868895cd
  1. 2
      modules/contest.js

2
modules/contest.js

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

Loading…
Cancel
Save