File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/routes/projectMemberInvites Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) ) ;
@@ -207,6 +207,7 @@ module.exports = [
207207 const forbidUserList = [ ] ;
208208 _ . zip ( invite . userIds , rolesList ) . forEach ( ( data ) => {
209209 const [ userId , roles ] = data ;
210+ req . log . debug ( roles ) ;
210211
211212 if ( ! util . hasIntersection ( MANAGER_ROLES , roles ) ) {
212213 forbidUserList . push ( userId ) ;
You can’t perform that action at this time.
0 commit comments