Skip to content

Commit d447caf

Browse files
committed
fixup! feat(dav): expose system address book
1 parent fd4bf72 commit d447caf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dav/lib/CardDAV/SystemAddressbook.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ private function extractCarddata(array $obj): ?string {
314314
* @throws Forbidden
315315
*/
316316
public function delete() {
317-
if (!$this->isFederation()) {
318-
throw new Forbidden();
317+
if ($this->isFederation()) {
318+
parent::delete();
319319
}
320-
parent::delete();
320+
throw new Forbidden();
321321
}
322322
}

0 commit comments

Comments
 (0)