mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-30 01:38:20 +02:00 
			
		
		
		
	add user to collection during creation
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
This commit is contained in:
		
				
					committed by
					
						 Mathijs van Veluw
						Mathijs van Veluw
					
				
			
			
				
	
			
			
			
						parent
						
							19e671ff25
						
					
				
				
					commit
					84e901b7d2
				
			| @@ -424,6 +424,10 @@ async fn post_organization_collections( | |||||||
|             .await?; |             .await?; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     if headers.org_user.atype == UserOrgType::Manager && !headers.org_user.access_all { | ||||||
|  |         CollectionUser::save(&headers.org_user.user_uuid, &collection.uuid, false, false, &mut conn).await?; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     Ok(Json(collection.to_json())) |     Ok(Json(collection.to_json())) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user