core: update vnode selection

This commit is contained in:
undefined committed 2021-08-21 20:17:10 +08:00
1 parent 7377bfadb0
commit 8ae067239c
5 files changed
+9 -4

No files matched your search

+1
View File
@@ -126,6 +126,7 @@ export class ProblemMainHandler extends ProblemHandler {
for (const pid of pids) {
// eslint-disable-next-line no-await-in-loop
const pdoc = await problem.get(domainId, pid);
if (!pdoc) continue;
if (!this.user.own(pdoc, PERM.PERM_EDIT_PROBLEM_SELF)) this.checkPerm(PERM.PERM_EDIT_PROBLEM);
// eslint-disable-next-line no-await-in-loop
await problem.del(domainId, pid);