1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-05-19 07:20:04 +02:00

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

add user to collection during creation
Dieser Commit ist enthalten in:
Daniel García 2023-07-04 20:53:46 +02:00 committet von GitHub
Commit 664b480c71
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

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