|
@@ -92,8 +92,8 @@ module.exports = options => {
|
|
|
stage.curTimes = stage.times;
|
|
|
stage.curOrder = _.max(_.map(stage.auditors, 'order'));
|
|
|
} else {
|
|
|
- const ass = stage.auditAssists.find(x => { return stage.curAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
|
|
|
- stage.readOnly = stage.curAuditorIds.indexOf(accountId) < 0 && !ass;
|
|
|
+ const ass = stage.auditAssists.find(x => { return stage.flowAuditorIds.indexOf(x.user_id) >= 0 && x.ass_user_id === accountId; });
|
|
|
+ stage.readOnly = stage.flowAuditorIds.indexOf(accountId) < 0 && !ass;
|
|
|
stage.curTimes = stage.times;
|
|
|
if (!stage.readOnly) {
|
|
|
stage.assist = ass;
|