diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-06-06 11:46:33 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2025-06-06 11:46:33 +0200 |
commit | 655f20d7b557f406c389faea119ed5e6e756c185 (patch) | |
tree | 183ea552aeee432aa3e5ebb95e6785a5780cd53f | |
parent | ed342544cd558503cc5d7ba0241843f32da24db4 (diff) | |
download | nextcloud-server-revert-52914.tar.gz nextcloud-server-revert-52914.zip |
Revert "fix: hide guests group from principal backend"revert-52914
This reverts commit 5876653677771fc5c70c6241c96c08e18577c701.
-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); } |