File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ workflows:
7676 - test
7777 filters :
7878 branches :
79- only : ' feature/m2m-support '
79+ only : ' dev '
8080 - deployProd :
8181 requires :
8282 - test
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ _.assignIn(util, {
114114 */
115115 hasAdminRole : ( req ) => {
116116 const isMachineToken = _ . get ( req , 'authUser.isMachine' , false ) ;
117- // const tokenScopes = _.get(req, 'authUser.scopes', []);
117+ const tokenScopes = _ . get ( req , 'authUser.scopes' , [ ] ) ;
118118 if ( isMachineToken ) {
119- // if (_.indexOf(tokenScopes, TOKEN_SCOPES.CONNECT_PROJECT_ADMIN) >= 0) return true;
119+ if ( _ . indexOf ( tokenScopes , TOKEN_SCOPES . CONNECT_PROJECT_ADMIN ) >= 0 ) return true ;
120120 return true ;
121121 }
122122 let roles = _ . get ( req , 'authUser.roles' , [ ] ) ;
You can’t perform that action at this time.
0 commit comments