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 596917b commit 74a8701Copy full SHA for 74a8701
src/routes/projectMemberInvites/create.js
@@ -181,7 +181,7 @@ module.exports = [
181
// permission:
182
// user has to have constants.MANAGER_ROLES role
183
// to be invited as PROJECT_MEMBER_ROLE.MANAGER
184
- if (invite.role === PROJECT_MEMBER_ROLE.MANAGER) {
+ if (_.includes(PROJECT_MEMBER_MANAGER_ROLES, invite.role)) {
185
_.forEach(invite.userIds, (userId) => {
186
req.log.info(userId);
187
promises.push(util.getUserRoles(userId, req.log, req.id));
0 commit comments