|
@@ -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) {
|