core: fix record_connection contest lock check

This commit is contained in:
undefined committed 2022-02-12 17:56:45 +08:00
1 parent 79839d64e5
commit 931e96a6b4
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.4.23",
"version": "3.4.24",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1
View File
@@ -238,6 +238,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
if (!this.pretest && rdoc.input) return;
if (rdoc.domainId !== this.domainId) return;
if (rdoc.contest && ![this.tid, '000000000000000000000000'].includes(rdoc.contest.toString())) return;
if (contest.isLocked(this.tdoc) && !contest.canShowScoreboard.call(this, this.tdoc, true)) return;
}
if (this.pid && rdoc.pid !== this.pid) return;
if (this.uid && rdoc.uid !== this.uid) return;