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] - Deleting a User Should Re-assign Recipes #3171

Open
6 tasks done
michael-genson opened this issue Feb 13, 2024 · 0 comments
Open
6 tasks done

[BUG] - Deleting a User Should Re-assign Recipes #3171

michael-genson opened this issue Feb 13, 2024 · 0 comments
Labels
bug: confirmed bug Something isn't working

Comments

@michael-genson
Copy link
Collaborator

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

If a user is deleted, their recipes still belong to them (or they might be deleted, or deleting the user might fail, depending on the database, I'm not sure). We should re-assign these recipes to another existing user, otherwise they'll be left with an invalid user id.

Steps to Reproduce

  1. Create a new user
  2. Log-in as the new user and create a recipe
  3. Log-in as another user (admin) and delete the new user
  4. Observe that the recipe's user_id is still the old user's id, which no longer exists

Please provide relevant logs

N/A

Mealie Version

nightly

Deployment

Docker (Synology)

Additional Deployment Details

No response

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

No branches or pull requests

1 participant