diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index a93bcd388..7acf24322 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.29.25", + "version": "2.29.26", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", diff --git a/packages/hydrooj/src/handler/record.ts b/packages/hydrooj/src/handler/record.ts index 3767c0a25..7c97972e6 100644 --- a/packages/hydrooj/src/handler/record.ts +++ b/packages/hydrooj/src/handler/record.ts @@ -185,7 +185,7 @@ class RecordMainConnectionHandler extends ConnectionHandler { if (tid) { const tdoc = await contest.get(domainId, tid, -1); if (!tdoc) throw new ContestNotFoundError(domainId, tid); - if (contest.canShowScoreboard.call(this, tdoc, true)) this.tid = tid.toHexString(); + if (pretest || contest.canShowScoreboard.call(this, tdoc, true)) this.tid = tid.toHexString(); else throw new PermissionError(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD); } if (uidOrName) {