MaiXinRong 6 rokov pred
rodič
commit
e2db5f733b
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      app/service/stage_pos.js

+ 4 - 4
app/service/stage_pos.js

@@ -253,12 +253,12 @@ module.exports = app => {
             const result = { pos: data, isDeletePos: true};
             if (pos instanceof Array) {
                 for (const p of pos) {
-                    if (p.add_stage !== this.ctx.stage.id || p.add_times !== this.ctx.stage.curTimes || p.add_user !== this.ctx.session.sessionUser.accountId) {
-                        throw '您无权删除该数据';
+                    if (p.add_stage !== this.ctx.stage.id /*|| p.add_times !== this.ctx.stage.curTimes || p.add_user !== this.ctx.session.sessionUser.accountId*/) {
+                        throw '不可删除该数据';
                     }
                 }
-            } else if (pos.add_stage !== this.ctx.stage.id || pos.add_times !== this.ctx.stage.curTimes || pos.add_user !== this.ctx.session.sessionUser.accountId) {
-                throw '您无权删除该数据';
+            } else if (pos.add_stage !== this.ctx.stage.id /*|| pos.add_times !== this.ctx.stage.curTimes || pos.add_user !== this.ctx.session.sessionUser.accountId*/) {
+                throw '不可删除该数据';
             }
             const ledgerIds = this._.map(pos, 'lid');