0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-12-14 17:43:46 +01:00

Merge pull request #3609 from farodin91/add-user-to-collection-during-creation

add user to collection during creation
This commit is contained in:
Daniel García 2023-07-04 20:53:46 +02:00 committed by GitHub
commit 664b480c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()))
} }