소스 검색

fix: 权限校验

hsun 1 년 전
부모
커밋
882416b967
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/english_report/report.go

+ 1 - 1
services/english_report/report.go

@@ -83,7 +83,7 @@ func CheckUserReportAuthByCompanyAndClassify(companyId, classifyId int) (authOk
 	{
 		cond := `en_classify_id = ?`
 		pars := make([]interface{}, 0)
-		pars = append(pars, companyId)
+		pars = append(pars, classifyId)
 		ob := new(en_classify_permission.EnClassifyPermission)
 		list, e := ob.GetList(cond, pars)
 		if e != nil {