kitchenowl
kitchenowl copied to clipboard
Feature request: transfer ownership of a household to a different user
What's the feature 🧐
Hello!
Maybe this is already possible, but my situation is as follows: I created a household with some user A. Then, I added members (B, C) to the household. Later, I deleted the user A that created the household in the first place. Therefore, the household has no owner, and I don't know how I can transfer ownership of it to another user (e.g. B).
Apparently, a server admin (which B is) has no ability to adjust household settings either. Is there a way to do this (maybe manually on the command line interface)?
Thanks in advance!
Extra information and references
No response
I got it to work by changing the owner
and admin
fields to 1
for my user_id
in the household_member
table.
What is the difference between owner
and admin
?
Anyway, I think it would be nice if you could transfer ownership in the application directly, or if server admins were also household admins by default.
The owner is a bit of legacy code from back when there was only one household per server. It used to be an undeletable account. It serves no real purpose any more other than to identify who created a household. You can make other members household admins (in the UI too), which gives them the same rights as the owner of a household.
When you remove yourself from the household, the admin rights are not transferred to the next person. I'll change that. Also, I get that the naming is not obvious between server admins, household admins, and household owners. This needs some rework. I'm also unsure if there even needs to be a rights' hierarchy within a household, or if all members should just share the same editing rights.
I must have overlooked that you can make other members houshold owners from the UI, but now I found it. I do think that it makes sense to be able to select household admins, and that not everyone should have the same rights.
My suggestions would be to
- make the server admin capable of managing household admins, and/or
- add a way to set a household admin from that management Python script. This would have been enough for me for not having to manipulate the database directly. This option is probably the quickest to implement. In fact, I might create a pull request for that feature, if you are interested.