Przeglądaj źródła

Merge branch 'cygx_10.1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 lat temu
rodzic
commit
8b2ea06a0f
1 zmienionych plików z 8 dodań i 6 usunięć
  1. 8 6
      controllers/chart_permission.go

+ 8 - 6
controllers/chart_permission.go

@@ -205,12 +205,14 @@ func (this *ChartPermissionAuthController) StrategyDetail() {
 		return
 	}
 	resp := new(models.ReportMappingHomeResp)
-	if cf.ConfigValue == "1" || user.CompanyId == utils.HZ_COMPANY_ID {
-		item := new(models.ReportMappingHome)
-		item.CategoryId = utils.TIME_LINE_ID
-		item.SubCategoryName = utils.TIME_LINE_NAME
-		item.MatchTypeName = utils.TIME_LINE_NAME
-		resp.List = append(resp.List, item)
+	if chartPermissionId != utils.GU_SHOU_ID {
+		if cf.ConfigValue == "1" || user.CompanyId == utils.HZ_COMPANY_ID {
+			item := new(models.ReportMappingHome)
+			item.CategoryId = utils.TIME_LINE_ID
+			item.SubCategoryName = utils.TIME_LINE_NAME
+			item.MatchTypeName = utils.TIME_LINE_NAME
+			resp.List = append(resp.List, item)
+		}
 	}
 	for _, v := range list {
 		resp.List = append(resp.List, v)