geforkt von mirrored/vaultwarden
Rename collection_user_details to collection_read_only to reflect the response model
Dieser Commit ist enthalten in:
Ursprung
dfdf4473ea
Commit
6a8c65493f
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -374,7 +374,7 @@ fn get_collection_users(org_id: String, coll_id: String, _headers: AdminHeaders,
|
||||||
.map(|col_user| {
|
.map(|col_user| {
|
||||||
UserOrganization::find_by_user_and_org(&col_user.user_uuid, &org_id, &conn)
|
UserOrganization::find_by_user_and_org(&col_user.user_uuid, &org_id, &conn)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_json_collection_user_details(col_user.read_only)
|
.to_json_read_only(col_user.read_only)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
|
@ -304,7 +304,7 @@ impl UserOrganization {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn to_json_collection_user_details(&self, read_only: bool) -> Value {
|
pub fn to_json_read_only(&self, read_only: bool) -> Value {
|
||||||
json!({
|
json!({
|
||||||
"Id": self.uuid,
|
"Id": self.uuid,
|
||||||
"ReadOnly": read_only
|
"ReadOnly": read_only
|
||||||
|
|
Laden …
In neuem Issue referenzieren