Ombi-app / Ombi

Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
http://ombi.io
GNU General Public License v2.0
3.71k stars 395 forks source link

Admin user can delete themselves and lose admin access entirely #4793

Open lennon101 opened 1 year ago

lennon101 commented 1 year ago

Describe the bug I accidentally deleted my Ombi Admin account (through the user management gui in Ombi Settings). How do I recover from this? In my opinion, this should not be allowed and at the very least should prompt the Admin account about the fact that they are deleting the only Admin account and they will lose all admin rights. My Ombi server is now "admin-less" - a state that should never be allowed to be achieved.

I'm really hoping you can help me recover from this :/

To Reproduce Steps to reproduce the behavior:

  1. Log in as Admin (local user in Ombi)
  2. Click on User Management in Ombi Settings
  3. Select the Admin account
  4. Select "delete"

Expected behavior Prompt the Admin that this is no allowed - especially if this is the only Admin account that exists.

Screenshots If applicable, add screenshots to help explain your problem.

Logs (Logs directory where Ombi is located) If applicable, a snippet of the logs that seems relevant to the bug if present.

Desktop (please complete the following information):

Ombi Version (please complete the following information):

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 year ago

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://docs.ombi.app/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.