Skip to content

Commit 74a8701

Browse files
committed
updated check for adding user as observer
1 parent 596917b commit 74a8701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectMemberInvites/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module.exports = [
181181
// permission:
182182
// user has to have constants.MANAGER_ROLES role
183183
// to be invited as PROJECT_MEMBER_ROLE.MANAGER
184-
if (invite.role === PROJECT_MEMBER_ROLE.MANAGER) {
184+
if (_.includes(PROJECT_MEMBER_MANAGER_ROLES, invite.role)) {
185185
_.forEach(invite.userIds, (userId) => {
186186
req.log.info(userId);
187187
promises.push(util.getUserRoles(userId, req.log, req.id));

0 commit comments

Comments
 (0)