diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ContactsMenu/Providers/DetailsProvider.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ContactsMenu/Providers/DetailsProvider.php b/lib/ContactsMenu/Providers/DetailsProvider.php index 3a451564..03231720 100644 --- a/lib/ContactsMenu/Providers/DetailsProvider.php +++ b/lib/ContactsMenu/Providers/DetailsProvider.php @@ -29,9 +29,6 @@ use OCP\Contacts\ContactsMenu\IEntry; use OCP\Contacts\ContactsMenu\IProvider; use OCP\IURLGenerator; -/** - * @todo move to contacts app - */ class DetailsProvider implements IProvider { /** @var IURLGenerator */ @@ -60,6 +57,11 @@ class DetailsProvider implements IProvider { return; } + if ($entry->getProperty('isLocalSystemBook') === true) { + // Cannot show details -> ignore + return; + } + // TODO: unique contact URL to the contacts app // TODO: l10n $contactsUrl = $this->urlGenerator->getAbsoluteURL('/index.php/apps/contacts'); |