ellisran 2 ay önce
ebeveyn
işleme
4167979f7a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/middleware/contract_check.js

+ 1 - 1
app/middleware/contract_check.js

@@ -23,7 +23,7 @@ module.exports = options => {
      */
      */
     return function* contractCheck(next) {
     return function* contractCheck(next) {
         try {
         try {
-            if (!this.subProject.page_show.openContract) {
+            if (!this.subProject.page_show.openContract && !this.subProject.page_show.openTenderContract) {
                 throw '该功能已关闭或无法查看';
                 throw '该功能已关闭或无法查看';
             }
             }
             const tid = this.params.tid || null;
             const tid = this.params.tid || null;