mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix home_domain
This commit is contained in:
1 parent
808cb5d4a5
commit
41f6149359
1 file changed
+1
-1
@@ -282,7 +282,7 @@ class HomeDomainHandler extends Handler {
|
||||
['home_domain', null],
|
||||
];
|
||||
let ddocs: DomainDoc[];
|
||||
let dudict: Record<string, DomainDoc>;
|
||||
let dudict: Record<string, DomainDoc> = {};
|
||||
if (!this.user.hasPriv(PRIV.PRIV_VIEW_ALL_DOMAIN)) {
|
||||
dudict = await domain.getDictUserByDomainId(this.user._id);
|
||||
const dids = Object.keys(dudict);
|
||||
|
||||
Reference in new issue
Block a user