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 0d29c21 commit 01fabdeCopy full SHA for 01fabde
src/routes/projectMemberInvites/update.js
@@ -66,7 +66,8 @@ 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
73
0 commit comments