From ba9b734f44a221903c9e21eaa591766db3a0e359 Mon Sep 17 00:00:00 2001 From: Efreak Date: Fri, 22 Nov 2024 22:33:27 -0800 Subject: [PATCH] keep worker IP, user contact info private even when public_worker=true If the user wants to make their contact info public, they can include it in the info field, but the docs explicitly say that the IP address is privileged, and don't mention it being made available based on public_worker field. --- horde/classes/base/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/horde/classes/base/worker.py b/horde/classes/base/worker.py index e4d58802..f5da87f9 100644 --- a/horde/classes/base/worker.py +++ b/horde/classes/base/worker.py @@ -472,6 +472,7 @@ def get_details(self, details_privilege=0): ret_dict["suspicious"] = len(self.suspicions) if details_privilege >= 1 or self.user.public_workers: ret_dict["owner"] = self.user.get_unique_alias() + if details_privilege >= 1: ret_dict["ipaddr"] = self.ipaddr ret_dict["contact"] = self.user.contact return ret_dict