Browse Source

fix: 权限校验

hsun 1 year ago
parent
commit
882416b967
1 changed files with 1 additions and 1 deletions
  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 {