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:
76
76
- test
77
77
filters :
78
78
branches :
79
- only : ' feature/m2m-support '
79
+ only : ' dev '
80
80
- deployProd :
81
81
requires :
82
82
- test
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ _.assignIn(util, {
114
114
*/
115
115
hasAdminRole : ( req ) => {
116
116
const isMachineToken = _ . get ( req , 'authUser.isMachine' , false ) ;
117
- // const tokenScopes = _.get(req, 'authUser.scopes', []);
117
+ const tokenScopes = _ . get ( req , 'authUser.scopes' , [ ] ) ;
118
118
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 ;
120
120
return true ;
121
121
}
122
122
let roles = _ . get ( req , 'authUser.roles' , [ ] ) ;
You can’t perform that action at this time.
0 commit comments