Skip to content

Commit 3b48b14

Browse files
authored
Merge pull request #156 from topcoder-platform/hotfix/patch-1.0.2
[HOTFIX] Post Release Patch 1.0.2
2 parents 6e437f1 + 0ff64fc commit 3b48b14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/common/helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,9 @@ async function checkIsMemberOfProject (userId, projectId) {
607607
.set('Authorization', `Bearer ${m2mToken}`)
608608
.set('Content-Type', 'application/json')
609609
.set('Accept', 'application/json')
610+
localLogger.debug({ context: 'checkIsMemberOfProject', message: `got project object ${projectId}: ${JSON.stringify(res.body)}` })
610611
const memberIdList = _.map(res.body.members, 'userId')
611-
localLogger.debug({ context: 'checkIsMemberOfProject', message: `the members of project ${projectId}: ${memberIdList}` })
612+
localLogger.debug({ context: 'checkIsMemberOfProject', message: `the members of project ${projectId}: ${JSON.stringify(memberIdList)}, authUserId: ${JSON.stringify(userId)}` })
612613
if (!memberIdList.includes(userId)) {
613614
throw new errors.UnauthorizedError(`userId: ${userId} the user is not a member of project ${projectId}`)
614615
}

0 commit comments

Comments
 (0)