|
@@ -94,8 +94,8 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async getBudgetUserPermission(bid) {
|
|
|
- const _ = this.ctx.helper._;
|
|
|
- const result = await this.getDataByCondition({uid: this.ctx.session.sessionUser.accountId, bid});
|
|
|
+ const subProj = await this.service.subProject.getDataByCondition({ budget_id: bid });
|
|
|
+ const result = await this.getDataByCondition({ spid: subProj.id, uid: this.ctx.session.sessionUser.accountId });
|
|
|
if (result) this.parsePermission(result);
|
|
|
return result;
|
|
|
}
|