MaiXinRong 2 năm trước cách đây
mục cha
commit
16e99edb44
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/payment_detail_audit.js

+ 1 - 1
app/service/payment_detail_audit.js

@@ -107,7 +107,7 @@ module.exports = app => {
             } else {
                 result.push({
                     aid: user.id, name: user.name, company: user.company, role: user.role, mobile: user.mobile, telephone: user.telephone,
-                    times: detail.curTimes, order: 0, status: auditConst.status.uncheck, latest: !detail.readOnly,
+                    times: detail.curTimes, order: 0, status: auditConst.status.uncheck, latest: this.ctx.session.sessionUser.accountId === user.id ? !detail.readOnly : false,
                 });
 
                 const sql = `SELECT pda.aid, pa.name, pa.company, pa.role, pa.mobile, pa.telephone, pda.times, pda.order, pda.status, pda.opinion, pda.begin_time, pda.end_time` +