Explorar o código

修复附件删除bug

laiguoran %!s(int64=4) %!d(string=hai) anos
pai
achega
bbc0185bc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 !== '') {