修改商家用户进入门店时,需要权限校验,改成商家用户只要拥有该门店权限就可以进入,不做用户权限校验
This commit is contained in:
@@ -1243,15 +1243,15 @@ func UpdateUserLastInfo(ctx *jxcontext.Context, storeID, brandID int) (err error
|
||||
}
|
||||
|
||||
func GetUserStoreAuth(ctx *jxcontext.Context, storeID int) (outStoreID int, err error) {
|
||||
if permission.IsRoled(ctx) {
|
||||
//if permission.IsRoled(ctx) {
|
||||
storeMap, _ := permission.GetUserStoresResultMap(ctx.GetUserID())
|
||||
if storeMap[storeID] != 0 {
|
||||
return storeID, err
|
||||
} else {
|
||||
return 0, err
|
||||
}
|
||||
}
|
||||
return storeID, err
|
||||
//}
|
||||
//return storeID, err
|
||||
}
|
||||
|
||||
func SendQywxPeopleCount(ctx *jxcontext.Context) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user