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 = [
181
181
// permission:
182
182
// user has to have constants.MANAGER_ROLES role
183
183
// 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 ) ) {
185
185
_ . forEach ( invite . userIds , ( userId ) => {
186
186
req . log . info ( userId ) ;
187
187
promises . push ( util . getUserRoles ( userId , req . log , req . id ) ) ;
@@ -207,6 +207,7 @@ module.exports = [
207
207
const forbidUserList = [ ] ;
208
208
_ . zip ( invite . userIds , rolesList ) . forEach ( ( data ) => {
209
209
const [ userId , roles ] = data ;
210
+ req . log . debug ( roles ) ;
210
211
211
212
if ( ! util . hasIntersection ( MANAGER_ROLES , roles ) ) {
212
213
forbidUserList . push ( userId ) ;
You can’t perform that action at this time.
0 commit comments