We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1577918 commit 2c71383Copy full SHA for 2c71383
src/util.js
@@ -114,7 +114,7 @@ _.assignIn(util, {
114
*/
115
hasAdminRole: (req) => {
116
const isMachineToken = _.get(req, 'authUser.isMachine', false);
117
- const tokenScopes = _.get(req, 'authUser.scopes', []);
+ // const tokenScopes = _.get(req, 'authUser.scopes', []);
118
if (isMachineToken) {
119
// if (_.indexOf(tokenScopes, TOKEN_SCOPES.CONNECT_PROJECT_ADMIN) >= 0) return true;
120
return true;
0 commit comments