mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ci fix
This commit is contained in:
4 files changed
+5
-3
No files matched your search
@@ -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,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user