mirror of
https://github.com/dani-garcia/bitwarden_rs
synced 2024-11-22 01:48:09 +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:
commit
664b480c71
@ -424,6 +424,10 @@ async fn post_organization_collections(
|
||||
.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()))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user