Skip to content

Commit

Permalink
Add contact properties for federated system addressbook and system ad…
Browse files Browse the repository at this point in the history
…dressbooks in general
  • Loading branch information
DeepDiver1975 committed Apr 3, 2018
1 parent 972f1e2 commit b253bd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/dav/lib/CardDAV/AddressBookImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,13 @@ protected function vCard2Array($uri, VCard $vCard) {
$result[$property->name] = $property->getValue();
}
}
if ($this->addressBookInfo['principaluri'] === 'principals/system/system' &&
$this->addressBookInfo['uri'] === 'system') {
$result['isLocalSystemBook'] = true;
if ($this->addressBookInfo['principaluri'] === 'principals/system/system' ) {
$result['isSystemBook'] = true;
if ($this->addressBookInfo['uri'] === 'system') {
$result['isLocalSystemBook'] = true;
} else {
$result['isFederatedSystemBook'] = true;
}
}
return $result;
}
Expand Down

0 comments on commit b253bd0

Please sign in to comment.