|
@@ -1207,7 +1207,8 @@ module.exports = app => {
|
|
|
if (ctx.stage.status === auditConst.status.checked) {
|
|
|
// 当前期状态为完成,且提交人是审核列表中的则可再次上传
|
|
|
console.log('当前期审核通过!');
|
|
|
- if (ctx.stage.auditors.findIndex(auditor => auditor.aid === ctx.session.sessionUser.accountId) !== -1) {
|
|
|
+ console.log(ctx.stage.auditors);
|
|
|
+ if (ctx.stage.user_id === ctx.session.sessionUser.accountId || ctx.stage.auditors.findIndex(auditor => auditor.aid === ctx.session.sessionUser.accountId) !== -1) {
|
|
|
console.log('当前用户拥有上传权限!');
|
|
|
// 再次上传的图片要给个标识,方便给前端进行编辑操作
|
|
|
ctx.reUploadPermission = true;
|