mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: api: ObjectID validation
This commit is contained in:
1 parent
5d9310fb78
commit
1f9d9a6b94
4 files changed
+38
-32
No files matched your search
@@ -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 {};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user