mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-04 10:14:00 +08:00
fix: 管理中心admin,初始化数据漏了新加的菜单数据权限
This commit is contained in:
@@ -45,7 +45,7 @@ func (i *initMenuAuthority) InitializeData(ctx context.Context) (next context.Co
|
|||||||
}
|
}
|
||||||
next = ctx
|
next = ctx
|
||||||
// 888
|
// 888
|
||||||
if err = db.Model(&authorities[0]).Association("SysBaseMenus").Replace(menus[31:38]); err != nil {
|
if err = db.Model(&authorities[0]).Association("SysBaseMenus").Replace(menus[31:39]); err != nil {
|
||||||
return next, err
|
return next, err
|
||||||
}
|
}
|
||||||
if err = db.Model(&authorities[0]).Association("SysBaseMenus").Append(menus[2:5]); err != nil {
|
if err = db.Model(&authorities[0]).Association("SysBaseMenus").Append(menus[2:5]); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user