From 330656c43733c0a734af6780e28540ee5fe1c1b8 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 15 Feb 2023 14:34:04 +0100 Subject: [PATCH] * Status/ActiveDirectory: fix not displayed photo avatar --- api/src/Accounts/Ads.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Accounts/Ads.php b/api/src/Accounts/Ads.php index 5c8c59a73e..c3f7bceca4 100644 --- a/api/src/Accounts/Ads.php +++ b/api/src/Accounts/Ads.php @@ -125,6 +125,7 @@ class Ads 'objectsid', 'samaccounttype', 'samaccountname', 'primarygroupid', 'givenname', 'sn', 'mail', 'displayname', 'telephonenumber', 'objectguid', 'useraccountcontrol', 'accountexpires', 'pwdlastset', 'whencreated', 'whenchanged', 'lastlogon', + 'jpegphoto', ); /** @@ -582,6 +583,7 @@ class Ads self::_when2ts($data['whencreated'][0]), 'account_modified' => !isset($data['whenchanged'][0]) ? null : self::_when2ts($data['whenchanged'][0]), + 'account_has_photo' => !empty($data['jpegphoto'][0]) ); // expired accounts are NOT active if ($user['account_expires'] !== -1 && $user['account_expires'] < time())