aa
This commit is contained in:
@@ -266,13 +266,13 @@ var (
|
||||
|
||||
func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct bool, keyword string, categoryID, status, offset, pageSize int) (skuNamesInfo *dao.StoreSkuNamesInfo, err error) {
|
||||
//权限
|
||||
if permission.IsRoled(ctx) {
|
||||
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
||||
if storeIDsMap[storeID] == 0 {
|
||||
return skuNamesInfo, err
|
||||
}
|
||||
}
|
||||
}
|
||||
//if permission.IsRoled(ctx) {
|
||||
// if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
|
||||
// if storeIDsMap[storeID] == 0 {
|
||||
// return skuNamesInfo, err
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
var (
|
||||
sqlParams []interface{}
|
||||
db = dao.GetDB()
|
||||
|
||||
Reference in New Issue
Block a user