We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a079f5 commit 0611e65Copy full SHA for 0611e65
src/services/InterviewService.js
@@ -26,7 +26,7 @@ const esClient = helper.getESClient()
26
async function ensureUserIsPermitted (currentUser, jobCandidateId) {
27
if (!currentUser.hasManagePermission && !currentUser.isMachine) {
28
const jobCandidate = await models.JobCandidate.findById(jobCandidateId)
29
- const job = jobCandidate.getJob()
+ const job = await jobCandidate.getJob()
30
await helper.checkIsMemberOfProject(currentUser.userId, job.projectId)
31
}
32
0 commit comments