Skip to content

Commit 1577918

Browse files
author
Sachin Maheshwari
committed
debugging scope issue.
1 parent 87b13c1 commit 1577918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ _.assignIn(util, {
116116
const isMachineToken = _.get(req, 'authUser.isMachine', false);
117117
const tokenScopes = _.get(req, 'authUser.scopes', []);
118118
if (isMachineToken) {
119-
if (_.indexOf(tokenScopes, TOKEN_SCOPES.CONNECT_PROJECT_ADMIN) >= 0) return true;
120-
return false;
119+
// if (_.indexOf(tokenScopes, TOKEN_SCOPES.CONNECT_PROJECT_ADMIN) >= 0) return true;
120+
return true;
121121
}
122122
let roles = _.get(req, 'authUser.roles', []);
123123
roles = roles.map(s => s.toLowerCase());

0 commit comments

Comments
 (0)