|
@@ -64,6 +64,8 @@ module.exports = options => {
|
|
const isTenderTourist = yield this.service.tenderTourist.getDataByCondition({ tid: tender.id, user_id: accountId });
|
|
const isTenderTourist = yield this.service.tenderTourist.getDataByCondition({ tid: tender.id, user_id: accountId });
|
|
// 判断访问人是否具有游客身份
|
|
// 判断访问人是否具有游客身份
|
|
tender.isTourist = isTenderTourist !== null;
|
|
tender.isTourist = isTenderTourist !== null;
|
|
|
|
+ // 游客权限
|
|
|
|
+ tender.touristPermission = yield this.service.tenderTourist.getTouristPermission(isTenderTourist);
|
|
if (auditorsId.indexOf(accountId) === -1 && tender.data.user_id !== accountId &&
|
|
if (auditorsId.indexOf(accountId) === -1 && tender.data.user_id !== accountId &&
|
|
(tenderPermission === null || tenderPermission === undefined || tenderPermission.indexOf('2') === -1) &&
|
|
(tenderPermission === null || tenderPermission === undefined || tenderPermission.indexOf('2') === -1) &&
|
|
stageAuditorsId.indexOf(accountId) === -1 && changeAuditorsId.indexOf(accountId) === -1 &&
|
|
stageAuditorsId.indexOf(accountId) === -1 && changeAuditorsId.indexOf(accountId) === -1 &&
|