mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: update vnode selection
This commit is contained in:
1 parent
7377bfadb0
commit
8ae067239c
5 files changed
+9
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user