更新角色管理相关内容

This commit is contained in:
hero920103 committed 2026-09-09 15:04:34 +08:00
1 parent de7225b61e
commit fef0233cc4
24 files changed
+1442 -116

No files matched your search

+2
View File
@@ -138,9 +138,11 @@ func (c *BackendRoleController) CreateRole() {
status = *p.Status
}
rights := normalizeRights(p.Rights)
// 租户端创建的角色一律标记为“自定义角色”,与系统/平台预置角色区分,并按租户隔离
role := &models.AdminRole{
TenantID: tid,
Cid: 2,
IsCustom: 1,
Name: p.Name,
Status: status,
Rights: rights,