aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen White <[email protected]>2019-01-25 14:25:15 +0000
committerStephen White <[email protected]>2019-01-25 14:25:15 +0000
commitfc0e239bdf7ae4aeed5df9273532c0985457d491 (patch)
tree55a5e25f58a016cdde588926c0299bf3795d8b50
parent928ad6c1d82d6f2c9c81b87898e28ae60146ca8e (diff)
downloadvaultwarden-fc0e239bdf7ae4aeed5df9273532c0985457d491.tar.gz
vaultwarden-fc0e239bdf7ae4aeed5df9273532c0985457d491.zip
No point calling find_by_uuid now we don't use the result.
-rw-r--r--src/db/models/organization.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs
index c755a061..498e64ea 100644
--- a/src/db/models/organization.rs
+++ b/src/db/models/organization.rs
@@ -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