1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2025-01-07 11:45:40 +01:00

rename to selected_collections

Dieser Commit ist enthalten in:
Stefan Melmuk 2024-12-21 23:49:14 +01:00
Ursprung 493d62188f
Commit 9e93571ac0
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 817020C608FE9C09

Datei anzeigen

@ -2352,7 +2352,7 @@ struct GroupRequest {
#[serde(default)]
access_all: bool,
external_id: Option<String>,
collections: Vec<CollectionSelection>,
collections: Vec<SelectedCollection>,
users: Vec<MembershipId>,
}
@ -2373,13 +2373,13 @@ impl GroupRequest {
#[derive(Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct CollectionSelection {
struct SelectedCollection {
id: CollectionId,
read_only: bool,
hide_passwords: bool,
}
impl CollectionSelection {
impl SelectedCollection {
pub fn to_collection_group(&self, groups_uuid: GroupId) -> CollectionGroup {
CollectionGroup::new(self.id.clone(), groups_uuid, self.read_only, self.hide_passwords)
}
@ -2462,7 +2462,7 @@ async fn put_group(
async fn add_update_group(
mut group: Group,
collections: Vec<CollectionSelection>,
collections: Vec<SelectedCollection>,
members: Vec<MembershipId>,
org_id: OrganizationId,
headers: &AdminHeaders,