mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: PERM_VIEW_PROBLEM check for domain_union
This commit is contained in:
1 parent
40edf15782
commit
10e0600b0b
3 files changed
+12
-4
No files matched your search
@@ -154,8 +154,9 @@ export class ProblemMainHandler extends ProblemHandler {
|
||||
let [pdocs, ppcount, pcount] = fail
|
||||
? [[], 0, 0]
|
||||
: await problem.list(
|
||||
domainId, query, undefined,
|
||||
domainId, query,
|
||||
page, system.get('pagination.problem'),
|
||||
undefined, this.user._id,
|
||||
);
|
||||
if (sort) pdocs = pdocs.sort((a, b) => sort.indexOf(`${a.domainId}/${a.docId}`) - sort.indexOf(`${b.domainId}/${b.docId}`));
|
||||
if (q) {
|
||||
|
||||
Reference in new issue
Block a user