Skip to content

Commit 0a319e7

Browse files
author
Sachin Maheshwari
committed
debugging done.
1 parent 2c71383 commit 0a319e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/.util.js.swp

20 KB
Binary file not shown.

src/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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', []);

0 commit comments

Comments
 (0)