@@ -491,11 +491,16 @@ public function getTicketsForDisplay($options) {
|
491 | 491 | public function rawSearchOptions() { |
492 | 492 | $tab = []; |
493 | 493 | $hide_technician = false; |
| 494 | +$hide_technician_group = false; |
494 | 495 | if (!Session::isCron()) { |
495 | | -$hide_technician = \Entity::getUsedConfig( |
496 | | -'anonymize_support_agents', |
497 | | - Session::getActiveEntity() |
498 | | - ); |
| 496 | +$user = new User(); |
| 497 | +if (empty($user->getAnonymizedName(Session::getActiveEntity()))) { |
| 498 | +$hide_technician = true; |
| 499 | + } |
| 500 | +$group = new Group(); |
| 501 | +if (empty($group->getAnonymizedName(Session::getActiveEntity()))) { |
| 502 | +$hide_technician_group = true; |
| 503 | + } |
499 | 504 | } |
500 | 505 | |
501 | 506 | $tab[] = [ |
@@ -743,8 +748,8 @@ public function rawSearchOptions() {
|
743 | 748 | 'datatype' => 'dropdown', |
744 | 749 | 'forcegroupby' => true, |
745 | 750 | 'massiveaction' => false, |
746 | | -'nodisplay' => $hide_technician, |
747 | | -'nosearch' => $hide_technician, |
| 751 | +'nodisplay' => $hide_technician_group, |
| 752 | +'nosearch' => $hide_technician_group, |
748 | 753 | 'condition' => ['is_assign' => 1], |
749 | 754 | 'joinparams' => [ |
750 | 755 | 'beforejoin' => [ |
|