mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: support reaction
This commit is contained in:
1 parent
48565ce711
commit
913658d144
12 files changed
+180
-37
No files matched your search
@@ -292,7 +292,7 @@ export class ProblemModel {
|
||||
const q: any = { docId: { $in: pids } };
|
||||
let pdocs = await document.getMulti(domainId, document.TYPE_PROBLEM, q)
|
||||
.project(buildProjection(projection)).toArray();
|
||||
if (group.length > 0) {
|
||||
if (group.length > 0 && canViewHidden !== true) {
|
||||
pdocs = pdocs.filter((i) => !i.assign?.length || Set.intersection(group, i.assign).size);
|
||||
}
|
||||
if (canViewHidden !== true) {
|
||||
|
||||
Reference in new issue
Block a user