Addresses and uses
An address belongs to a user. What it is used for, and by whom, is recorded separately as uses: a use is a site ID plus a type. Site ID 0 is the member’s own address book; any other site ID means the address has been given to that site’s organisation as that type. One address can carry several uses, for example residential in the member’s book and postal for two clubs. There is at most one current address per user, site and type: giving another address the same site and type ends the old use.
History is kept forever
Decided by Peter, 21 Nov 2026 (0.3.0). Nothing is deleted. Changing an address ends its row (ended_at, ended_by) and starts a new one. The member’s own book, and every site they still belong to (carry_use_on_move(), filter lh_addresses_carry_use_on_move), move to the new row. A site they have left keeps its use on the old row, so it holds the last address it was given and never sees later moves. A replaced address can’t be changed, given or edited.
Who can read
- A user reads all of their own addresses.
- The admin capability (
install_plugins, filterable) reads everything. - Anyone else reads only the uses a site holds, in full and with their geocoded point, and only when
lh_addresses_site_can_readreturns true. LH Membership is to answer it: the viewer holdspromote_userson that site and the subject is a current or former member. A current member’s site sees their current address; a former member’s site sees the last address it was given. Having an account on a site is not membership.
Who can edit
The owner and the admin capability can edit any of the owner’s current addresses. Site staff who can read an address may edit it only while the member has not taken it into their own book: an address staff entered (for example from an import) is created with a use for that site only and becomes the member’s once they confirm it.
Leaving and deletion
Organisations own the addresses their members gave them, and Australia has no general right to erasure (Peter, 21 Nov 2026). Leaving a site, being removed from it and being deleted from the network end nothing. There is no personal data eraser; the exporter remains and includes replaced addresses.
Validation
Each save records a validation status: valid, incomplete (a field the country requires is empty), invalid (the postcode does not match the country’s pattern, or the country is unknown) or unchecked (the library is not installed). A save is never refused on these grounds.

