更新角色管理相关内容
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user