|
@@ -35,6 +35,7 @@ module.exports = app => {
|
|
|
stage.curAuditor = await this.ctx.service.stageAudit.getCurAuditor(stage.id, stage.times);
|
|
|
|
|
|
const accountId = this.ctx.session.sessionUser.accountId, auditorIds = this._.map(stage.auditors, 'aid'), shareIds = [];
|
|
|
+ const permission = this.ctx.session.sessionUser.permission;
|
|
|
if (accountId === stage.user_id) { // 原报
|
|
|
if (stage.curAuditor) {
|
|
|
stage.readOnly = stage.curAuditor.aid !== accountId;
|
|
@@ -65,7 +66,7 @@ module.exports = app => {
|
|
|
stage.curOrder = accountId === stage.curAuditor.aid ? stage.curAuditor.order : stage.curAuditor.order - 1;
|
|
|
}
|
|
|
stage.readOnly = (stage.status !== status.checking && stage.status !== status.checkNoPre) || accountId !== stage.curAuditor.aid;
|
|
|
- } else if (shareIds.indexOf(accountId) !== -1) { // 分享人
|
|
|
+ } else if (shareIds.indexOf(accountId) !== -1 || (permission !== null && permission.tender !== undefined && permission.tender.indexOf('2') !== -1)) { // 分享人
|
|
|
if (stage.status === status.uncheck) {
|
|
|
throw '您无权查看该数据';
|
|
|
}
|