aa
This commit is contained in:
@@ -922,7 +922,7 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
|
||||
for k, _ := range valid {
|
||||
if roleMap[k] != "" || marketManPhoneRoleMap[k] != "" {
|
||||
menus, _ := dao.GetMenu(db, "结算权限", 0, 1, ctx.GetUserID())
|
||||
menus, _ := dao.GetMenuWithUser(dao.GetDB(), "结算权限", 0, 1, ctx.GetUserID())
|
||||
if len(menus) == 0 {
|
||||
return 0, errors.New(fmt.Sprintf("当前用户 [%v] 无权限修改此字段!", ctx.GetUserName()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user