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 4da2fb5 + 5284262 commit de25526Copy full SHA for de25526
src/routes/projectMemberInvites/update.js
@@ -66,7 +66,7 @@ module.exports = [
66
if (!util.hasRoles(req, MANAGER_ROLES) && invite.role !== PROJECT_MEMBER_ROLE.CUSTOMER) {
67
error = `Project members can cancel invites only for ${PROJECT_MEMBER_ROLE.CUSTOMER}`;
68
}
69
- } else if ((!!putInvite.userId && putInvite.userId !== req.authUser.userId) ||
+ } else if ((!!putInvite.userId && `${putInvite.userId}` !== req.authUser.userId) ||
70
(!!putInvite.email && putInvite.email !== req.authUser.email)) {
71
error = 'Project members can only update invites for themselves';
72
0 commit comments