summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-11 08:40:52 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-11 08:40:52 +0200
commit07f1bb1013f1427d14d4b4c3b93a7e4fce4a261f (patch)
tree58c62f286f316517cc99db2fa3a32f7f5136d5e7 /lib
parentf564f17cd4880d4fd92f6a726bdc069560fc9284 (diff)
Ignore system contacts
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/ContactsMenu/Providers/DetailsProvider.php8
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');