static function helperTestPlanEffectiveRole($tplan, $tproject, $userSet)
 {
     $effective_role = array();
     $effective_role = tlUser::getTestProjectEffectiveRoleForUserSet($tproject, $userSet);
     foreach ($effective_role as $user_id => $row) {
         $isInherited = 1;
         $effective_role[$user_id]['uplayer_role_id'] = $effective_role[$user_id]['effective_role_id'];
         $effective_role[$user_id]['uplayer_is_inherited'] = $effective_role[$user_id]['is_inherited'];
         // Manage administrator exception
         if ($row['user']->globalRoleID != TL_ROLES_ADMIN && !$tplan['is_public']) {
             $isInherited = $tproject['is_public'];
             $effectiveRoleID = TL_ROLES_NO_RIGHTS;
             $effectiveRole = '<no rights>';
         }
         // ---------------------------------------------------------------------------
         if (isset($row['user']->tplanRoles[$tplan['id']])) {
             $isInherited = 0;
             $effective_role[$user_id]['effective_role_id'] = $row['user']->tplanRoles[$tplan['id']]->dbID;
             $effective_role[$user_id]['effective_role'] = $row['user']->tplanRoles[$tplan['id']];
         }
         $effective_role[$user_id]['is_inherited'] = $isInherited;
     }
     return $effective_role;
 }