|
@@ -485,6 +485,7 @@ type ChartPermissionCheckInfo struct {
|
|
|
Mobile string `json:"mobile" description:"手机号"`
|
|
|
Type string `json:"type" description:"无权限,需要前端处理的类型,枚举值:expired, apply, contact"`
|
|
|
CustomerInfo CustomerInfo `json:"customer_info" description:"客户信息"`
|
|
|
+ Jump string `json:"jump" description:"需要跳转的页面,sandbox_list"`
|
|
|
}
|
|
|
|
|
|
// CheckUserChartPermission 验证用户/联系人的图库权限
|
|
@@ -888,6 +889,9 @@ func CheckUserSandboxPermission(companyId int64, userId, permissionId int) (ok b
|
|
|
ok = true
|
|
|
}
|
|
|
}
|
|
|
+ if ok == false {
|
|
|
+ permissionCheckInfo.Jump = `sandbox_list` //如果是没有单个品种的权限,那么提示后并跳转到沙盘列表页吧
|
|
|
+ }
|
|
|
} else {
|
|
|
// 不校验品种权限的话,那么就是认为有权限的
|
|
|
if len(companyPermissionList) > 0 {
|