diff options
author | LEDfan <tobia@ledfan.be> | 2014-12-06 13:58:10 +0100 |
---|---|---|
committer | LEDfan <tobia@ledfan.be> | 2014-12-06 13:58:10 +0100 |
commit | b412e59c2626ea8272c42834f309e04e110ea23b (patch) | |
tree | 612726058e86ee83a0bfb231b39d81df1b58833e /lib/private/contactsmanager.php | |
parent | 94eb2e782fa164492dd2665e6651eaa7068039aa (diff) | |
download | nextcloud-server-b412e59c2626ea8272c42834f309e04e110ea23b.tar.gz nextcloud-server-b412e59c2626ea8272c42834f309e04e110ea23b.zip |
Fix permissions
Diffstat (limited to 'lib/private/contactsmanager.php')
-rw-r--r-- | lib/private/contactsmanager.php | 8 |
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; } /** |