Fix permissions

This commit is contained in:
LEDfan 2014-12-06 13:58:10 +01:00
parent 94eb2e782f
commit b412e59c26
1 changed files with 4 additions and 4 deletions

View File

@ -63,10 +63,10 @@ namespace OC {
} }
if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_DELETE) { 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) { if ($addressBook->getPermissions() & \OCP\Constants::PERMISSION_CREATE) {
return null; return $addressBook->createOrUpdate($properties);
} }
return $addressBook->createOrUpdate($properties); return null;
} }
/** /**