Fix permissions
This commit is contained in:
parent
94eb2e782f
commit
b412e59c26
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue