Explorar o código

fix:音频下载

Roc hai 10 meses
pai
achega
693d528348
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/report_chapter.go

+ 1 - 1
controllers/report_chapter.go

@@ -1045,7 +1045,7 @@ func (this *ReportController) VoiceUpload() {
 	}
 
 	// 如果不是自己创建的报告,那么要去校验是否属于授权用户
-	if this.SysUser.AdminId == reportInfo.AdminId {
+	if this.SysUser.AdminId != reportInfo.AdminId {
 		isAuth, err := services.CheckChapterAuthByReportChapterInfo(this.SysUser.AdminId, reportChapterInfo)
 		if err != nil {
 			br.Msg = "获取报告权限失败"