1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-06-30 19:24:42 +02:00

Fix the list of users with access to a collection to display correctly.

https://github.com/dani-garcia/bitwarden_rs/issues/364
Dieser Commit ist enthalten in:
Stephen White 2019-01-25 14:18:06 +00:00
Ursprung 9d027b96d8
Commit 928ad6c1d8
2 geänderte Dateien mit 3 neuen und 13 gelöschten Zeilen

Datei anzeigen

@ -375,11 +375,7 @@ fn get_collection_users(org_id: String, coll_id: String, _headers: AdminHeaders,
})
.collect();
Ok(Json(json!({
"Data": user_list,
"Object": "list",
"ContinuationToken": null,
})))
Ok(Json(json!(user_list)))
}
#[derive(FromForm)]

Datei anzeigen

@ -296,14 +296,8 @@ impl UserOrganization {
let user = User::find_by_uuid(&self.user_uuid, conn).unwrap();
json!({
"OrganizationUserId": self.uuid,
"AccessAll": self.access_all,
"Name": user.name,
"Email": user.email,
"Type": self.type_,
"Status": self.status,
"ReadOnly": read_only,
"Object": "collectionUser",
"Id": self.uuid,
"ReadOnly": read_only
})
}