Remove federated sharing address books which are the same as local ones

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-10-17 21:16:13 +02:00
parent 6dde7e1183
commit 45d8aeb9f2
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 2 deletions

View File

@ -262,8 +262,12 @@ class AddressBookImpl implements IAddressBook {
} }
} }
if ($this->addressBookInfo['principaluri'] === 'principals/system/system' && if (
$this->addressBookInfo['uri'] === 'system') { $this->addressBookInfo['principaluri'] === 'principals/system/system' && (
$this->addressBookInfo['uri'] === 'system' ||
$this->addressBookInfo['{DAV:}displayname'] === $this->urlGenerator->getBaseUrl()
)
) {
$result['isLocalSystemBook'] = true; $result['isLocalSystemBook'] = true;
} }
return $result; return $result;