diff options
-rw-r--r-- | apps/dav/lib/DAV/GroupPrincipalBackend.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/dav/lib/DAV/GroupPrincipalBackend.php b/apps/dav/lib/DAV/GroupPrincipalBackend.php index ddbd64bdda1..143fc7d69f1 100644 --- a/apps/dav/lib/DAV/GroupPrincipalBackend.php +++ b/apps/dav/lib/DAV/GroupPrincipalBackend.php @@ -50,10 +50,8 @@ class GroupPrincipalBackend implements BackendInterface { $principals = []; if ($prefixPath === self::PRINCIPAL_PREFIX) { - foreach ($this->groupManager->search('') as $group) { - if (!$group->hideFromCollaboration()) { - $principals[] = $this->groupToPrincipal($group); - } + foreach ($this->groupManager->search('') as $user) { + $principals[] = $this->groupToPrincipal($user); } } @@ -79,7 +77,7 @@ class GroupPrincipalBackend implements BackendInterface { $name = urldecode($elements[2]); $group = $this->groupManager->get($name); - if ($group !== null && !$group->hideFromCollaboration()) { + if (!is_null($group)) { return $this->groupToPrincipal($group); } |