mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix canViewHidden check
This commit is contained in:
1 parent
e32d5ee18b
commit
0c182878f2
2 files changed
+2
-2
No files matched your search
@@ -307,7 +307,7 @@ export class ProblemModel {
|
||||
pdocs = pdocs.filter((i) => !i.assign?.length || Set.intersection(group, i.assign).size);
|
||||
}
|
||||
if (canViewHidden !== true) {
|
||||
pdocs = pdocs.filter((i) => i.owner === canViewHidden || !i.hidden);
|
||||
pdocs = pdocs.filter((i) => i.owner === canViewHidden || i.maintainer?.includes(canViewHidden as any) || !i.hidden);
|
||||
}
|
||||
for (const pdoc of pdocs) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user