This commit is contained in:
苏尹岚
2021-03-19 10:56:10 +08:00
parent 2ba2ff5994
commit dd34822b86
3 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ func GetMenu(ctx *jxcontext.Context, userID string) (menus []*model.Menu, err er
} else {
if user, err := dao.GetUserByID(dao.GetDB(), "user_id", userID); err == nil {
if user.Type&model.UserTypeRole != 0 {
return dao.GetMenuWithUser(dao.GetDB(), "", 0, userID)
return dao.GetMenuWithUser(dao.GetDB(), "", 0, 0, userID)
} else {
return dao.GetMenu(dao.GetDB(), "", 0, 0, "")
}