Skip to content

Commit 27dcaa5

Browse files
authored
Merge pull request #53371 from nextcloud/revert-53077-backport/52914/stable31
2 parents 359000c + 1fb6859 commit 27dcaa5

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
@@ -50,10 +50,8 @@ public function getPrincipalsByPrefix($prefixPath) {
5050
$principals = [];
5151

5252
if ($prefixPath === self::PRINCIPAL_PREFIX) {
53-
foreach ($this->groupManager->search('') as $group) {
54-
if (!$group->hideFromCollaboration()) {
55-
$principals[] = $this->groupToPrincipal($group);
56-
}
53+
foreach ($this->groupManager->search('') as $user) {
54+
$principals[] = $this->groupToPrincipal($user);
5755
}
5856
}
5957

@@ -79,7 +77,7 @@ public function getPrincipalByPath($path) {
7977
$name = urldecode($elements[2]);
8078
$group = $this->groupManager->get($name);
8179

82-
if ($group !== null && !$group->hideFromCollaboration()) {
80+
if (!is_null($group)) {
8381
return $this->groupToPrincipal($group);
8482
}
8583

0 commit comments

Comments
 (0)