mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix #62
This commit is contained in:
1 parent
9cfdbe3aa9
commit
33bc45c5ab
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.20.35",
|
||||
"version": "2.20.36",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -179,7 +179,7 @@ class UserDetailHandler extends Handler {
|
||||
record.getByUid(domainId, uid, 30),
|
||||
this.user.hasPerm(PERM.PERM_VIEW_PROBLEM)
|
||||
? paginate(
|
||||
problem.getMulti(domainId, { owner: this.user._id }),
|
||||
problem.getMulti(domainId, { owner: uid }),
|
||||
1,
|
||||
100,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user