Bladeren bron

标段概况相关

MaiXinRong 1 jaar geleden
bovenliggende
commit
565c0c55d1
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 '您无权修改标段设置内容';
                 }