mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-12-14 09:33:44 +01:00
No point calling find_by_uuid now we don't use the result.
This commit is contained in:
parent
928ad6c1d8
commit
fc0e239bdf
1 changed files with 0 additions and 2 deletions
|
@ -293,8 +293,6 @@ 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!({
|
||||
"Id": self.uuid,
|
||||
"ReadOnly": read_only
|
||||
|
|
Loading…
Reference in a new issue