-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Allow repo admins too to delete the repo #23940
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
Allow repo admins too to delete the repo #23940
Conversation
https://github.com/go-gitea/gitea/pull/17811/files#diff-3b0db4078124698cd245ecc5c5396177de97754dde9be5b233230e20a53404c4L242 |
The owner team is created when an org is created. Owners could create an admin team but cannot create another owner team. Admin team have almost permissions as owners except they should not remove owners from the owner team. |
🎺 🤖 |
Fixes #23934
We need to check
AccessModeAdmin
inCanUserDelete
instead ofAccessModeOwner