Separate system accounts and household people, add generation directory and consented member location sharing

This commit is contained in:
Codex
2026-10-18 20:00:43 +08:00
parent 67bc5a1ba9
commit 3b2c046060
52 changed files with 1497 additions and 311 deletions
+1
View File
@@ -41,6 +41,7 @@ class InventoryTests(unittest.TestCase):
def test_people_and_all_device_types_share_references_without_granting_access(self):
person=dict(id='e'*16,name='家庭成员',familyId=self.aid,archived=False)
app.save_object('people',person)
app.MEMBERS.save(self.owner,dict(personId=person['id']))
ref='person:'+person['id'];self.assertIn(ref,{p['ref'] for p in app.INVENTORY.candidates(self.owner)})
before=app.objects('users')
rows=[app.save_asset(dict(self.assets[self.aid],managerRef=ref),self.owner),