1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-06-28 10:15:41 +02:00

Merge pull request #365 from CoreFiling/master

Fix the list of users with access to a collection to display correctly.
Dieser Commit ist enthalten in:
Daniel García 2019-01-25 16:52:27 +01:00 committet von GitHub
Commit 80414f8452
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 3 neuen und 15 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

@ -293,17 +293,9 @@ impl UserOrganization {
}
pub fn to_json_collection_user_details(&self, read_only: bool, conn: &DbConn) -> Value {
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
})
}