浏览代码

修复附件删除bug

laiguoran 4 年之前
父节点
当前提交
bbc0185bc3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/controller/ledger_controller.js

+ 1 - 1
app/controller/ledger_controller.js

@@ -937,7 +937,7 @@ module.exports = app => {
                 if (!fileInfo || !Object.keys(fileInfo).length) {
                     throw '该文件不存在';
                 }
-                if (!fileInfo.extra_upload && ctx.stage.status === auditConst.status.checked) {
+                if (!fileInfo.extra_upload && ctx.tender.status === auditConst.status.checked) {
                     throw '无权限删除';
                 }
                 if (fileInfo !== undefined && fileInfo !== '') {