core: allow homework add maintainer (#518)

This commit is contained in:
panda authored and GitHub committed 2023-02-25 17:29:35 +08:00
1 parent 809966fed3
commit eb634dca69
8 files changed
+30 -16

No files matched your search

+1 -1
View File
@@ -395,7 +395,7 @@ export class ContestEditHandler extends Handler {
domainId: string, tid: ObjectID, beginAtDate: string, beginAtTime: string, duration: number,
title: string, content: string, rule: string, _pids: string, rated = false,
_code = '', autoHide = false, assign: string[] = null, lock: number = null,
contestDuration: number = null, maintainer: number[] = null, allowViewCode = false,
contestDuration: number = null, maintainer: number[] = [], allowViewCode = false,
) {
if (autoHide) this.checkPerm(PERM.PERM_EDIT_PROBLEM);
const pids = _pids.replace(/,/g, ',').split(',').map((i) => +i).filter((i) => i);