Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8021b01

Browse files
author
Sachin Maheshwari
committed
typo
1 parent e7e894b commit 8021b01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/front/src/components/common/navigation.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ angular.module('topcoderX') // eslint-disable-line angular/no-services
1414
$scope.user['copilot'] = false;
1515
Object.keys(decodedToken).findIndex(function (key) {
1616
if (key.includes('roles')) {
17-
if (decodedToken['roles'].indexOf('copilot') > -1) {
17+
if (key.indexOf('copilot') > -1) {
1818
$scope.user['copilot'] = true;
1919
$log.info('User is a copilot');
2020
} else {

0 commit comments

Comments
 (0)