feat(api): scope products and inventory by owner and household
This commit is contained in:
parent
1f47974f48
commit
803bc3b4cd
5 changed files with 520 additions and 44 deletions
|
|
@ -246,7 +246,7 @@ def test_household_inventory_update_rules_owner_admin_and_member(session: Sessio
|
|||
|
||||
assert can_update_inventory(session, inventory.id, owner) is True
|
||||
assert can_update_inventory(session, inventory.id, admin) is True
|
||||
assert can_update_inventory(session, inventory.id, member) is False
|
||||
assert can_update_inventory(session, inventory.id, member) is True
|
||||
|
||||
|
||||
def test_product_visibility_for_owner_admin_and_household_shared(session: Session):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue