File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ public function getPrincipalsByPrefix($prefixPath) {
5050		$ principals
5151
5252		if  ($ prefixPathself ::PRINCIPAL_PREFIX ) {
53- 			foreach  ($ this groupManager ->search ('' ) as  $ user
54- 				$ principals$ this groupToPrincipal ($ user
53+ 			foreach  ($ this groupManager ->search ('' ) as  $ group
54+ 				if  (!$ grouphideFromCollaboration ()) {
55+ 					$ principals$ this groupToPrincipal ($ group
56+ 				}
5557			}
5658		}
5759
@@ -77,7 +79,7 @@ public function getPrincipalByPath($path) {
7779		$ nameurldecode ($ elements2 ]);
7880		$ group$ this groupManager ->get ($ name
7981
80- 		if  (! is_null ( $ group
82+ 		if  ($ group  !==  null  && ! $ group-> hideFromCollaboration ( )) {
8183			return  $ this groupToPrincipal ($ group
8284		}
8385
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments