Browse Source

修复bug

ellisran 5 tháng trước cách đây
mục cha
commit
4167979f7a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {
         try {
-            if (!this.subProject.page_show.openContract) {
+            if (!this.subProject.page_show.openContract && !this.subProject.page_show.openTenderContract) {
                 throw '该功能已关闭或无法查看';
             }
             const tid = this.params.tid || null;