|
@@ -220,7 +220,8 @@ func GetActivityDetailUserPower(user *models.WxUser, adminInfo *system.Admin, ac
|
|
|
var userTypeStr string
|
|
|
|
|
|
|
|
|
- if user.CompanyId == utils.HZ_COMPANY_ID || activityInfo.ChartPermissionName == "宏观" {
|
|
|
+
|
|
|
+ if user.CompanyId == utils.HZ_COMPANY_ID {
|
|
|
havePower = true
|
|
|
return
|
|
|
}
|
|
@@ -236,6 +237,17 @@ func GetActivityDetailUserPower(user *models.WxUser, adminInfo *system.Admin, ac
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if permissionStr == "" {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ permissionStr += "," + utils.HONG_GUAN_NAME
|
|
|
+ if permissionStrZhengShi == "" {
|
|
|
+ permissionStrZhengShi = utils.HONG_GUAN_NAME
|
|
|
+ } else {
|
|
|
+ permissionStrZhengShi += "," + utils.HONG_GUAN_NAME
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if activityInfo.YidongActivityId != "" {
|
|
|
if strings.Contains(permissionStr, activityInfo.ChartPermissionName) || strings.Contains(permissionStr, activityInfo.ChartPermissionNameDeputy) {
|
|
@@ -351,9 +363,17 @@ func GetActivityDetailUserPower(user *models.WxUser, adminInfo *system.Admin, ac
|
|
|
companyDetailStatus = companyDetail.Status
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if activityInfo.ChartPermissionId == 1 {
|
|
|
- havePower = true
|
|
|
- return
|
|
|
+ if activityInfo.IsLimitPeople > 0 {
|
|
|
+ if strings.Contains(activityInfo.CustomerTypeIds, userTypeStr) {
|
|
|
+ havePower = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ havePower = true
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (activityInfo.ActivityTypeId == 1 || activityInfo.ActivityTypeId == 3) && strings.Contains(permissionStr, "专家") && activityInfo.IsLimitPeople == 0 {
|
|
|
havePower = true
|