소스 검색

标段概况相关

MaiXinRong 1 년 전
부모
커밋
565c0c55d1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/controller/tender_controller.js

+ 1 - 1
app/controller/tender_controller.js

@@ -630,7 +630,7 @@ module.exports = app => {
                 const stageAUditorsId = ctx.helper._.map(stageAuditors, 'aid');
                 const accountId = ctx.session.sessionUser.accountId;
                 if (auditorsId.indexOf(accountId) === -1 && ctx.tender.data.user_id !== accountId &&
-                    stageAUditorsId.indexOf(accountId) === -1) {
+                    stageAUditorsId.indexOf(accountId) === -1 && !ctx.session.sessionUser.is_admin) {
                     throw '您无权修改标段设置内容';
                 }