mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 修复training nav支持定义插入位置
This commit is contained in:
1 parent
47ceddea9e
commit
46630065aa
6 files changed
+17
-8
No files matched your search
@@ -176,7 +176,7 @@ class DomainRoleHandler extends ManageHandler {
|
||||
const rdict: Dictionary<any> = {};
|
||||
for (const r of roles) rdict[r._id] = r.perm;
|
||||
if (rdict[role]) throw new RoleAlreadyExistError(role);
|
||||
await domain.addRole(domainId, role, rdict.default.perm);
|
||||
await domain.addRole(domainId, role, rdict.default);
|
||||
this.back();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user