Commit ef361bd8 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-916 Undo removal of SYSTEM check.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 07c2cd31
......@@ -364,6 +364,10 @@ class Kopano extends SyncWorker {
PR_DISPLAY_TYPE_EX
));
foreach ($gabentries as $entry) {
// do not add SYSTEM user to the GAB
if (strtoupper($entry[PR_DISPLAY_NAME]) == "SYSTEM") {
continue;
}
// ignore hidden entries
if (isset($entry[PR_EC_AB_HIDDEN]) && $entry[PR_EC_AB_HIDDEN]) {
$this->Log(sprintf("Kopano->GetGAB(): Ignoring user '%s' as account is hidden", $entry[PR_ACCOUNT]));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment