-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Ensure there is always one user with admin privileges #15449
Comments
You can add admin users back by |
Hello @wxiaoguang I know Which is fine :) Bye |
I have read the issue. Indeed there could be a lot of "dumb" operations, for example, you set an OTP and forgot the recovery code, or you changed the password but forgot it, and even someone changes the record from database. Since there is a way to recover the mistake, it seems not worth to check everything again and again. ps: I closed many inactive issues recently, this issue has been a long time and seems not getting interest to get a PR. If you can propose a PR, I can help to review and approve. |
I understand your point and agree not to make too many checks neither address every possible situation. I don't have time neither appropriate skills to propose a PR, and nobody else seems concerned by this issue. So it is fine to close the issue. Thank you for your detailed answer. |
|
Yes exactly. |
Admin should not be able to delete themselves. Also partially fix #15449
Admin should not be able to delete themselves. Also partially fix go-gitea#15449
gitea/gitea:1.14.0-rootless
[x]
):Description
Hi, today doing a dumb test with my prod instance, I remove myself from the admin group (where I was alone).
This was not a big deal as I could get it back through cli, but it seems to me it would be better if Gitea prevents this kind of mistake.
Either it could check if at least one admin remains after removal, or it could disallow removing admin privileges to the logged in user?
Thanks in advance.
The text was updated successfully, but these errors were encountered: