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 '您无权修改标段设置内容';
                 }