|
@@ -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');
|
|
|
|