1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-05-18 23:10:05 +02:00

add user to collection during creation

Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
Dieser Commit ist enthalten in:
Jan Jansen 2023-06-23 08:26:45 +02:00 committet von Mathijs van Veluw
Ursprung 19e671ff25
Commit 84e901b7d2

Datei anzeigen

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