瀏覽代碼

fix:音频下载

Roc 10 月之前
父節點
當前提交
693d528348
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 = "获取报告权限失败"