core: api: ObjectID validation

This commit is contained in:
undefined committed 2021-10-28 00:06:47 +08:00
1 parent 5d9310fb78
commit 1f9d9a6b94
4 files changed
+38 -32

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ registerResolver(
);
registerResolver(
'Problem', 'manage', 'ProblemManage',
async (arg, ctx) => {
(arg, ctx) => {
if (!ctx.user.own(ctx.pdoc, PERM.PERM_EDIT_PROBLEM_SELF)) ctx.checkPerm(PERM.PERM_EDIT_PROBLEM);
return {};
},