|
@@ -137,14 +137,14 @@ module.exports = app => {
|
|
|
}
|
|
|
if (stage.users.indexOf(accountId) >= 0) {
|
|
|
stage.filePermission = true;
|
|
|
+ } else if (!!isTenderTourist || force) {
|
|
|
+ stage.filePermission = this.tender && this.tender.touristPermission ? this.tender.touristPermission.file : false;
|
|
|
} else {
|
|
|
if (shareIds.indexOf(accountId) !== -1 || (permission !== null && permission.tender !== undefined && permission.tender.indexOf('2') !== -1)) {// 分享人
|
|
|
if (stage.status === status.uncheck) {
|
|
|
throw '您无权查看该数据';
|
|
|
}
|
|
|
stage.filePermission = false;
|
|
|
- } else if (!!isTenderTourist || force) {
|
|
|
- stage.filePermission = this.tender && this.tender.touristPermission ? this.tender.touristPermission.file : false;
|
|
|
} else {
|
|
|
throw '您无权查看该数据';
|
|
|
}
|