[Legacy] Fix Show Fullnames as admin aspect

This commit is contained in:
y.yerli 2024-08-02 17:38:14 +03:00
parent e32540739c
commit 62228c57d7

View file

@ -1131,13 +1131,10 @@ function showFullName()
static $showFullName = null;
if (is_null($showFullName)) {
$sysPref = !empty($sugar_config['use_real_names']);
$userPref = (is_object($current_user)) ? $current_user->getPreference('use_real_names') : null;
if ($userPref != null && $userPref !== 'off') {
$showFullName = ($userPref == 'on');
} else {
$showFullName = $sysPref;
}
}