ellisran před 3 týdny
rodič
revize
e4152d3751
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/service/project_account.js

+ 2 - 2
app/service/project_account.js

@@ -1121,8 +1121,8 @@ module.exports = app => {
                 return [];
             }
             const userPermission = userInfo !== undefined && userInfo.permission !== '' ? JSON.parse(userInfo.permission) : null;
-            if (userPermission !== null && userPermission.other !== undefined && userPermission.other.indexOf('1') !== -1 && userInfo.unit_sign_path) {
-                return userInfo.unit_sign_path.split('&%&');
+            if (userPermission !== null && userPermission.other !== undefined && userPermission.other.indexOf('1') !== -1) {
+                return userInfo.unit_sign_path ? userInfo.unit_sign_path.split('&%&') : [];
             }
             const info = await this.ctx.service.constructionUnit.getDataByCondition({ pid: userInfo.project_id, name: userInfo.company });
             if (!info || info.sign_permission === 0) {