Skip to content

Commit 254a3e4

Browse files
committed
all handles of users with this role will be displayed in purple
1 parent 8bcb7f2 commit 254a3e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Topcoder/class.topcoder.plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ public static function getTopcoderUser($user) {
20702070
* @param $user
20712071
* @return array|false|mixed|void
20722072
*/
2073-
public static function hasCustomerRole($user) {
2073+
public static function hasColorizedRole($user) {
20742074
$userModel = new UserModel();
20752075
if(is_numeric($user)) {
20762076
$user = $userModel->getID($user, DATASET_TYPE_ARRAY);
@@ -2819,7 +2819,7 @@ function userAnchor($user, $cssClass = null, $options = null) {
28192819
$attributes['class'] = $attributes['class'].' '. 'disabledLink' ;
28202820
}
28212821

2822-
$hasRole = TopcoderPlugin::hasCustomerRole($userID);
2822+
$hasRole = TopcoderPlugin::hasColorizedRole($userID);
28232823
if($hasRole) {
28242824
$attributes['class'] = $attributes['class'].' '. 'purple' ;
28252825
}
@@ -3069,7 +3069,7 @@ function topcoderMentionAnchor($mention, $cssClass = null, $options = null) {
30693069
$user = $userModel->getByUsername($handle, false);
30703070
if ($user) {
30713071
$userID = val('UserID', $user);
3072-
$hasRole = TopcoderPlugin::hasCustomerRole($userID);
3072+
$hasRole = TopcoderPlugin::hasColorizedRole($userID);
30733073
if($hasRole) {
30743074
$attributes['class'] = $attributes['class'].' '. 'purple' ;
30753075
}

0 commit comments

Comments
 (0)