aa
This commit is contained in:
@@ -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) {
|
||||||
|
if permission.IsRoled(ctx) {
|
||||||
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
|
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
|
||||||
if storeMap[storeID] != 0 {
|
if storeMap[storeID] != 0 {
|
||||||
return storeID, err
|
return storeID, err
|
||||||
} else {
|
} else {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
return outStoreID, err
|
}
|
||||||
|
return storeID, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user