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.
2 parents 0b57894 + 0611e65 commit 788d014Copy full SHA for 788d014
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