This commit is contained in:
undefined committed 2026-04-11 18:48:50 +08:00
1 parent 940a499115
commit 3d70cf3352
4 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -418,7 +418,8 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
contest.getRelated(this.args.domainId, this.pdoc.docId),
contest.getRelated(this.args.domainId, this.pdoc.docId, 'homework'),
])).map((tdocs) => tdocs.filter((tdoc) =>
this.user.hasPerm(PERM.PERM_VIEW_HIDDEN_CONTEST) || !tdoc.assign?.length || new Set(tdoc.assign).intersection(new Set(this.user.group)).size,
this.user.hasPerm(PERM.PERM_VIEW_HIDDEN_CONTEST) || !tdoc.assign?.length
|| new Set(tdoc.assign).intersection(new Set(this.user.group)).size,
));
}
}