Skip to content

Commit de25526

Browse files
author
vikasrohit
authored
Merge pull request #228 from topcoder-platform/hotfix/debug_logs
fixing issue with acceptance of inviting members by handle
2 parents 4da2fb5 + 5284262 commit de25526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = [
6666
if (!util.hasRoles(req, MANAGER_ROLES) && invite.role !== PROJECT_MEMBER_ROLE.CUSTOMER) {
6767
error = `Project members can cancel invites only for ${PROJECT_MEMBER_ROLE.CUSTOMER}`;
6868
}
69-
} else if ((!!putInvite.userId && putInvite.userId !== req.authUser.userId) ||
69+
} else if ((!!putInvite.userId && `${putInvite.userId}` !== req.authUser.userId) ||
7070
(!!putInvite.email && putInvite.email !== req.authUser.email)) {
7171
error = 'Project members can only update invites for themselves';
7272
}

0 commit comments

Comments
 (0)