Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: unable to Change or add accounts #157

Closed
vincemue opened this issue May 11, 2023 · 9 comments
Closed

Bug: unable to Change or add accounts #157

vincemue opened this issue May 11, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@vincemue
Copy link

Is this urgent?

Yes

What parts are affected

Frontend

What are the Server/Client versions of KitchenOwl

0.4.3

What's the problem 🤔

After updating I am not able to change existing accounts or ad new accounts. I can only find the Option to add members to a household.

Share your logs

No response

Share your configuration

No response

@vincemue vincemue added the bug Something isn't working label May 11, 2023
@TomBursch
Copy link
Owner

The option is still there, it can be found under server → users. See below in the screenshot:
github

@vincemue
Copy link
Author

vincemue commented May 11, 2023 via email

@TomBursch
Copy link
Owner

There is a difference now between a household and server admin. With the migration, only the "owner" (the first user on the server) was promoted to server admin, not all household admins. Your other user should be able to make you a server admin.

@vincemue
Copy link
Author

vincemue commented May 11, 2023

I am the First User on the Server and only added my wife Afterwards. Is there an other way to promote myself to Server Admin again?
@TomBursch

@TomBursch
Copy link
Owner

Update your server to the latest version and run the following command:
docker exec -it NAME_OF_THE_BACKEND_CONTAINER python manage.py
The rest should be self-explanatory, it is an interactive script that lets you manage your server and make yourself an admin again.
Just to make sure that there is no greater issue here, could you tell me if there was really no other admin present or if another account became the admin.

@vincemue
Copy link
Author

Thanks for the Response. I will try it later. I assume I need to run the command in the Backend Container console? I am running it in unraid.

I checked the Database and assume its the following table:
Screenshot_20230512-195838_SQLite Editor

@TomBursch
Copy link
Owner

Inside the container you can just run python manage.py.

Thanks for the screenshot, another solution would've been to just set the admin value to 1.
Strange that no one gained admin rights, will have to do some digging.

@vincemue
Copy link
Author

vincemue commented May 12, 2023

Inside the container you can just run python manage.py.

Thanks for the screenshot, another solution would've been to just set the admin value to 1. Strange that no one gained admin rights, will have to do some digging.

Thanks, the Script worked and I am Admin again.
How ist the Initial owner defined? By earliest creation Date?

@TomBursch TomBursch reopened this May 13, 2023
@TomBursch
Copy link
Owner

There was indeed an issue in the migration script, which is fixed now. This should also fix this issue for existing instances, by making the user with the lowest ID admin if no admin is present on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants