core: fix problem count for search

This commit is contained in:
undefined committed 2023-11-07 23:57:11 +08:00
1 parent 3cbe0e6de1
commit afbf3b6174
1 file changed
+2
+2
View File
@@ -193,6 +193,8 @@ export class ProblemMainHandler extends Handler {
pcount = pcount - count + pdocs.length;
}
}
// some problems are hidden and cannot be viewed by current user
if (pcount > pdocs.length) pcount = pdocs.length;
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
const domainIds = Array.from(new Set(pdocs.map((i) => i.domainId)));
await Promise.all(