|
@@ -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 });
|