File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments