Skip to content

Commit

Permalink
fixup! fix(carddav): Check enumeration settings for all SAB methods
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed May 24, 2023
1 parent 739dafb commit 568ddbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/CardDAV/SystemAddressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getChildren() {
return [];
}
}
if ($shareEnumeration && $shareEnumerationGroup) {
if ($shareEnumerationGroup) {
if ($this->groupManager === null) {
// Group manager is not available, so we can't determine which data is safe
return [];
Expand Down Expand Up @@ -148,7 +148,7 @@ public function getMultipleChildren($paths): array {
return [];
}
}
if ($shareEnumeration && $shareEnumerationGroup) {
if ($shareEnumerationGroup) {
$user = $this->userSession->getUser();
if ($this->groupManager === null || $user === null) {
// Group manager or user is not available, so we can't determine which data is safe
Expand Down

0 comments on commit 568ddbb

Please sign in to comment.