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) { func GetUserStoreAuth(ctx *jxcontext.Context, storeID int) (outStoreID int, err error) {
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID()) if permission.IsRoled(ctx) {
if storeMap[storeID] != 0 { storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
return storeID, err if storeMap[storeID] != 0 {
} else { return storeID, err
return 0, err } else {
return 0, err
}
} }
return outStoreID, err return storeID, err
} }