Browse Source

no message

xingzai 2 years ago
parent
commit
20b56bdab8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/chart_permission.go

+ 3 - 1
controllers/chart_permission.go

@@ -122,7 +122,9 @@ func (this *ChartPermissionAuthController) ReportDetail() {
 			}
 		}
 	}
-	condition += ` AND permission_name  != '买方研选'`
+	if userType == 1 {
+		condition += ` AND permission_name  != '买方研选'`
+	}
 	list, err := models.GetChartPermissionReportAll(condition)
 	if err != nil {
 		br.Msg = "获取信息失败"