mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: hide guest and default role for add_user operation
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -154,10 +154,9 @@ class DomainUserHandler extends ManageHandler {
|
||||
const ud = udict[dudoc.uid];
|
||||
rudocs[ud.role || 'default'].push(ud);
|
||||
}
|
||||
const rolesSelect = roles.map((role) => [role._id, role._id]);
|
||||
this.response.template = 'domain_user.html';
|
||||
this.response.body = {
|
||||
roles, rolesSelect, rudocs, udict, domain: this.domain,
|
||||
roles, rudocs, udict, domain: this.domain,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user