|
|
@ -293,17 +293,9 @@ impl UserOrganization {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn to_json_collection_user_details(&self, read_only: bool, conn: &DbConn) -> Value {
|
|
|
|
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!({
|
|
|
|
json!({
|
|
|
|
"OrganizationUserId": self.uuid,
|
|
|
|
"Id": self.uuid,
|
|
|
|
"AccessAll": self.access_all,
|
|
|
|
"ReadOnly": read_only
|
|
|
|
"Name": user.name,
|
|
|
|
|
|
|
|
"Email": user.email,
|
|
|
|
|
|
|
|
"Type": self.type_,
|
|
|
|
|
|
|
|
"Status": self.status,
|
|
|
|
|
|
|
|
"ReadOnly": read_only,
|
|
|
|
|
|
|
|
"Object": "collectionUser",
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|