Преглед на файлове

Merge branch 'cygx_need_p1-885' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai преди 1 година
родител
ревизия
273e58e9df
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      services/activity_special.go

+ 8 - 1
services/activity_special.go

@@ -984,6 +984,14 @@ func GetSpecialDetailUserPower(user *models.WxUserItem, activityInfo *models.Cyg
 		err = errors.New("GetCompanyPermissionUpgrade, Err: " + e.Error())
 		return
 	}
+
+	//如果有升级权限的自动添加策略的升级权限
+	if permissionStr != "" {
+		if activityInfo.ChartPermissionName == utils.CE_LUE_NAME {
+			permissionStr += "," + utils.CE_LUE_NAME
+		}
+	}
+
 	//如果没有对应的升级权限,则返回
 	if !strings.Contains(permissionStr, activityInfo.ChartPermissionName) {
 		return
@@ -1010,7 +1018,6 @@ func GetSpecialDetailUserPower(user *models.WxUserItem, activityInfo *models.Cyg
 		havePower = true
 		return
 	}
-
 	if strings.Contains(permissionStr, activityInfo.ChartPermissionName) && strings.Contains(activityInfo.CustomerTypeIds, "8") {
 		havePower = true
 		return