ellisran hace 4 semanas
padre
commit
b5e7414b1d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/service/project_account.js

+ 2 - 1
app/service/project_account.js

@@ -1120,7 +1120,8 @@ module.exports = app => {
             if (!userInfo || !userInfo.company) {
                 return [];
             }
-            if (userInfo.unit_sign_path) {
+            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('&%&');
             }
             const info = await this.ctx.service.constructionUnit.getDataByCondition({ pid: userInfo.project_id, name: userInfo.company });