Quellcode durchsuchen

TASK #3472 补漏(原报也在审核列表中的情况)

Tony Kang vor 3 Wochen
Ursprung
Commit
d031ada05f
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      app/controller/report_controller.js

+ 3 - 2
app/controller/report_controller.js

@@ -215,7 +215,8 @@ module.exports = app => {
                     }
                     }
                     let isAudit = false;
                     let isAudit = false;
                     for (const audit of stage.auditorList) {
                     for (const audit of stage.auditorList) {
-                        if (audit.aid === this.ctx.session.sessionUser.accountId) {
+                        if (audit.aid === this.ctx.session.sessionUser.accountId && audit.aid !== stage.user_id) {
+                            // audit.aid !== stage.user_id 不含原报
                             isAudit = true;
                             isAudit = true;
                             break;
                             break;
                         }
                         }
@@ -232,7 +233,7 @@ module.exports = app => {
                             }
                             }
                             let isAudit = false;
                             let isAudit = false;
                             for (const audit of stageList[idx].auditorList) {
                             for (const audit of stageList[idx].auditorList) {
-                                if (audit.aid === this.ctx.session.sessionUser.accountId) {
+                                if (audit.aid === this.ctx.session.sessionUser.accountId && audit.aid !== stageList[idx].user_id) {
                                     isAudit = true;
                                     isAudit = true;
                                     break;
                                     break;
                                 }
                                 }