update changelog

This commit is contained in:
undefined committed 2023-03-15 22:55:10 +08:00
1 parent 96ddd6721d
commit 3b80564b5c
8 files changed
+129 -42

No files matched your search

+5
View File
@@ -322,6 +322,11 @@ export class ContestScoreboardHandler extends ContestDetailBaseHandler {
async exportScoreboard(domainId: string, tid: ObjectId, ext: string) {
await this.limitRate('scoreboard_download', 60, 3);
if (ext === 'ghost') {
if ((contest.isDone(this.tdoc) || contest.isLocked(this.tdoc)) && !this.tdoc.unlocked) {
if (!this.user.own(this.tdoc)) {
this.checkPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
}
}
await this.exportGhost(domainId, tid);
return;
}