Skip to content

Commit 48c5f69

Browse files
committed
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.
1 parent c78fbc4 commit 48c5f69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

horde/classes/base/worker.py

+1
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ def get_details(self, details_privilege=0):
472472
ret_dict["suspicious"] = len(self.suspicions)
473473
if details_privilege >= 1 or self.user.public_workers:
474474
ret_dict["owner"] = self.user.get_unique_alias()
475+
if details_privilege >= 1:
475476
ret_dict["ipaddr"] = self.ipaddr
476477
ret_dict["contact"] = self.user.contact
477478
return ret_dict

0 commit comments

Comments
 (0)