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 e7e894b commit 8021b01Copy full SHA for 8021b01
src/front/src/components/common/navigation.controller.js
@@ -14,7 +14,7 @@ angular.module('topcoderX') // eslint-disable-line angular/no-services
14
$scope.user['copilot'] = false;
15
Object.keys(decodedToken).findIndex(function (key) {
16
if (key.includes('roles')) {
17
- if (decodedToken['roles'].indexOf('copilot') > -1) {
+ if (key.indexOf('copilot') > -1) {
18
$scope.user['copilot'] = true;
19
$log.info('User is a copilot');
20
} else {
0 commit comments