aa
This commit is contained in:
@@ -519,7 +519,7 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
||||
//权限
|
||||
if ctx.GetUserName() != "jxadmin" {
|
||||
fmt.Println("111111111111111111111111111111111111111111")
|
||||
if user, err := dao.GetUserByID(db, "userID", ctx.GetUserID()); err == nil {
|
||||
if user, err := dao.GetUserByID(db, "user_id", ctx.GetUserID()); err == nil {
|
||||
if user.Type&model.UserTypeRole != 0 {
|
||||
fmt.Println("22222222222222222222222222222222222222222")
|
||||
if storeIDsMap, err := GetUserStoresResultMap(user.UserID); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user