Skip to content

Commit 626368f

Browse files
authored
Merge pull request #64 from topcoder-platform/issues-451
Showing orange handles for 'connect manager'
2 parents 2d5747b + 325b951 commit 626368f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Topcoder/class.topcoder.plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ private static function loadTopcoderUserDetailsByHandle($topcoderHandle) {
18351835
$roleNames = array_column($topcoderRoles, 'roleName');
18361836
$lowerRoleNames = array_map('strtolower', $roleNames);
18371837
$cachedUser['Roles'] = $roleNames;
1838-
$cachedUser['IsAdmin'] = in_array("admin", $lowerRoleNames) || in_array("administrator", $lowerRoleNames);
1838+
$cachedUser['IsAdmin'] = count(array_intersect($lowerRoleNames, ["connect manager", "admin", "administrator"])) > 0;
18391839
}
18401840

18411841
$topcoderRating = self::loadTopcoderRating($topcoderHandle); //loaded by handle

0 commit comments

Comments
 (0)