diff --git a/src/CommonITILObject.php b/src/CommonITILObject.php index 51439fdb49c..9d92145d0ce 100644 --- a/src/CommonITILObject.php +++ b/src/CommonITILObject.php @@ -494,7 +494,14 @@ public function getActorsForType(int $actortype = 1, array $params = []): array // load existing actors (from existing itilobject) if (isset($this->users[$actortype])) { foreach ($this->users[$actortype] as $user) { - $name = getUserName($user['users_id']); + $disable_anonymize = false; + if ( + $actortype == CommonITILActor::REQUESTER + || $actortype == CommonITILActor::OBSERVER + ) { + $disable_anonymize = true; + } + $name = getUserName($user['users_id'], 0, $disable_anonymize); $actors[] = [ 'id' => $user['id'], 'items_id' => $user['users_id'],