-
-
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
Team members can't rename branch but adding and deletion is possible #31993
Comments
I'm not sure whether it is by design. |
If user can delete branch, it should have permission to create a new one. |
Just to clarify: adding and deleting a branch works, it is renaming a branch, that causes an error message |
The previous implementation requires admin permission to rename branches which should be write permission. Fix go-gitea#31993
Backport #32066 by @lunny The previous implementation requires admin permission to rename branches which should be write permission. Fix #31993 Co-authored-by: Lunny Xiao <[email protected]>
I can verify the problem at Version: 1.22.1 i'm glad that it will be fixed with new release |
Description
Hi,
it looks like there is a permission issue so that team members can't rename branches.
I can reproduce it like this:
There is an organization O with a Team T.
The Team T has access to
specific repositories
withGeneral access
and atAllow Access to Repository Sections
every section is set to write.Then I add user X to the Team T .. X is NOT an owner of the organization.
Then I create a repository REPO inside the organization O and add the team T to it.
The user X now has the permission to add and delete a branch in REPO, but renaming a branch leads to a 404 error message.
The log output is
Best regards
Daniel
Gitea Version
1.22.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Debian 12
How are you running Gitea?
Via docker
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: