Skip to content

Commit b95e31b

Browse files
authored
Merge pull request #53370 from nextcloud/revert-53078-backport/52914/stable30
2 parents c0ef0b8 + 1f3c754 commit b95e31b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

apps/dav/lib/DAV/GroupPrincipalBackend.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ public function getPrincipalsByPrefix($prefixPath) {
6666
$principals = [];
6767

6868
if ($prefixPath === self::PRINCIPAL_PREFIX) {
69-
foreach ($this->groupManager->search('') as $group) {
70-
if (!$group->hideFromCollaboration()) {
71-
$principals[] = $this->groupToPrincipal($group);
72-
}
69+
foreach ($this->groupManager->search('') as $user) {
70+
$principals[] = $this->groupToPrincipal($user);
7371
}
7472
}
7573

@@ -95,7 +93,7 @@ public function getPrincipalByPath($path) {
9593
$name = urldecode($elements[2]);
9694
$group = $this->groupManager->get($name);
9795

98-
if ($group !== null && !$group->hideFromCollaboration()) {
96+
if (!is_null($group)) {
9997
return $this->groupToPrincipal($group);
10098
}
10199

0 commit comments

Comments
 (0)