summaryrefslogtreecommitdiffstats
path: root/lib/private/contactsmanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/contactsmanager.php')
-rw-r--r--lib/private/contactsmanager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/contactsmanager.php b/lib/private/contactsmanager.php
index 737fc4f0e3a..527b603ac38 100644
--- a/lib/private/contactsmanager.php
+++ b/lib/private/contactsmanager.php
@@ -63,10 +63,10 @@ namespace OC {
}
if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_DELETE) {
- return null;
+ return $addressBook->delete($id);
}
- return $addressBook->delete($id);
+ return null;
}
/**
@@ -84,10 +84,10 @@ namespace OC {
}
if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
- return null;
+ return $addressBook->createOrUpdate($properties);
}
- return $addressBook->createOrUpdate($properties);
+ return null;
}
/**