core: do not check canShowRecord for scoreboard

This commit is contained in:
undefined committed 2021-06-30 17:07:39 +08:00
1 parent 1226c1cb21
commit 33208a0d1f
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -607,7 +607,6 @@ export async function getScoreboard(
): Promise<[Tdoc<30 | 60>, ScoreboardRow[], Udict, ProblemDict, number]> {
const tdoc = await get(domainId, tid, docType);
if (!canShowScoreboard.call(this, tdoc)) throw new ContestScoreboardHiddenError(tid);
if (!canShowRecord.call(this, tdoc)) throw new ContestScoreboardHiddenError(tid);
const tsdocsCursor = getMultiStatus(domainId, { docId: tid }, docType).sort(RULES[tdoc.rule].statusSort);
const pdict = await problem.getList(domainId, tdoc.pids, true);
const [rows, udict, nPages] = await RULES[tdoc.rule].scoreboard(