diff --git a/samples/dexie-cloud-todo-app/src/components/access-control/EditMemberAccess.tsx b/samples/dexie-cloud-todo-app/src/components/access-control/EditMemberAccess.tsx index 51a6afd23..4763e31d2 100644 --- a/samples/dexie-cloud-todo-app/src/components/access-control/EditMemberAccess.tsx +++ b/samples/dexie-cloud-todo-app/src/components/access-control/EditMemberAccess.tsx @@ -67,6 +67,8 @@ function changeAccess( db.members .where({ realmId, userId: todoList.owner }) .modify({ roles: ['manager'] }); + // Change owner of all members in the realm: + db.members.where({ realmId }).modify({ owner: member.userId }); // Change owner of the todo list: db.todoLists.update(todoList, { owner: member.userId }); // Change owner of realm: