This commit is contained in:
suyl
2021-05-07 18:31:33 +08:00
parent 5b6eec3d96
commit a2a50f639b

View File

@@ -1187,12 +1187,13 @@ func UpdateUserLastInfo(ctx *jxcontext.Context, storeID, brandID int) (err error
}
func GetUserStoreAuth(ctx *jxcontext.Context, storeID int) (outStoreID int, err error) {
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
if storeMap[storeID] != 0 {
return storeID, err
} else {
return 0, err
if permission.IsRoled(ctx) {
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
if storeMap[storeID] != 0 {
return storeID, err
} else {
return 0, err
}
}
return outStoreID, err
return storeID, err
}