We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166f984 commit 5876653Copy full SHA for 5876653
1 file changed
apps/dav/lib/DAV/GroupPrincipalBackend.php
@@ -50,8 +50,10 @@ public function getPrincipalsByPrefix($prefixPath) {
50
$principals = [];
51
52
if ($prefixPath === self::PRINCIPAL_PREFIX) {
53
- foreach ($this->groupManager->search('') as $user) {
54
- $principals[] = $this->groupToPrincipal($user);
+ foreach ($this->groupManager->search('') as $group) {
+ if (!$group->hideFromCollaboration()) {
55
+ $principals[] = $this->groupToPrincipal($group);
56
+ }
57
}
58
59
@@ -77,7 +79,7 @@ public function getPrincipalByPath($path) {
77
79
$name = urldecode($elements[2]);
78
80
$group = $this->groupManager->get($name);
81
- if (!is_null($group)) {
82
+ if ($group !== null && !$group->hideFromCollaboration()) {
83
return $this->groupToPrincipal($group);
84
85
0 commit comments