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) {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user