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 @@ -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
You can’t perform that action at this time.
0 commit comments