|
@@ -86,7 +86,7 @@ module.exports = options => {
|
|
|
} else {
|
|
|
const ass = stage.auditAssists.find(x => { return x.user_id === stage.curAuditor.aid && x.ass_user_id === accountId; });
|
|
|
stage.readOnly = stage.curAuditor.aid !== accountId && !ass;
|
|
|
- if (stage.readOnly) stage.assist = ass;
|
|
|
+ if (!stage.readOnly) stage.assist = ass;
|
|
|
}
|
|
|
if (stage.readOnly) {
|
|
|
stage.assist = accountId === stage.user_id || auditorIds.indexOf(accountId) >= 0 ? null : auditAssists.find(x => { return x.ass_user_id === accountId});
|