mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"name": "hydrooj",
|
||||||
"version": "2.20.35",
|
"version": "2.20.36",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ class UserDetailHandler extends Handler {
|
|||||||
record.getByUid(domainId, uid, 30),
|
record.getByUid(domainId, uid, 30),
|
||||||
this.user.hasPerm(PERM.PERM_VIEW_PROBLEM)
|
this.user.hasPerm(PERM.PERM_VIEW_PROBLEM)
|
||||||
? paginate(
|
? paginate(
|
||||||
problem.getMulti(domainId, { owner: this.user._id }),
|
problem.getMulti(domainId, { owner: uid }),
|
||||||
1,
|
1,
|
||||||
100,
|
100,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user