Skip to content

Commit

Permalink
keep worker IP, user contact info private even when public_worker=true
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Efreak authored and db0 committed Nov 23, 2024
1 parent c78fbc4 commit ba9b734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions horde/classes/base/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba9b734

Please sign in to comment.