mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: domain_user: ignore banned users
This commit is contained in:
1 file changed
+3
-2
@@ -146,8 +146,9 @@ class DomainUserHandler extends ManageHandler {
|
|||||||
const udict = await user.getList(domainId, uids);
|
const udict = await user.getList(domainId, uids);
|
||||||
for (const role of roles) rudocs[role._id] = [];
|
for (const role of roles) rudocs[role._id] = [];
|
||||||
for (const dudoc of dudocs) {
|
for (const dudoc of dudocs) {
|
||||||
const ud = udict[dudoc.uid];
|
const udoc = udict[dudoc.uid];
|
||||||
rudocs[ud.role || 'default'].push(ud);
|
if (!(udoc.priv & PRIV.PRIV_USER_PROFILE)) continue;
|
||||||
|
rudocs[udoc.role || 'default'].push(udoc);
|
||||||
}
|
}
|
||||||
this.response.template = 'domain_user.html';
|
this.response.template = 'domain_user.html';
|
||||||
this.response.body = {
|
this.response.body = {
|
||||||
|
|||||||
Reference in new issue
Block a user