Browse Source

fix:音频下载

Roc 9 months ago
parent
commit
693d528348
1 changed files with 1 additions and 1 deletions
  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 = "获取报告权限失败"