mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	graphql: Implement looking up a group's users
This commit is contained in:
		
							parent
							
								
									396f89047f
								
							
						
					
					
						commit
						3dc0bce421
					
				@ -235,7 +235,13 @@ impl<Handler: BackendHandler + Sync> Group<Handler> {
 | 
				
			|||||||
        if !context.validation_result.is_admin {
 | 
					        if !context.validation_result.is_admin {
 | 
				
			||||||
            return Err("Unauthorized access to group data".into());
 | 
					            return Err("Unauthorized access to group data".into());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        unimplemented!()
 | 
					        Ok(context
 | 
				
			||||||
 | 
					            .handler
 | 
				
			||||||
 | 
					            .list_users(Some(DomainRequestFilter::MemberOfId(GroupId(
 | 
				
			||||||
 | 
					                self.group_id,
 | 
				
			||||||
 | 
					            ))))
 | 
				
			||||||
 | 
					            .await
 | 
				
			||||||
 | 
					            .map(|v| v.into_iter().map(Into::into).collect())?)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user