You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web
Kemal Zebari 2483a93fbc
Only allow admins to rename default/protected branches (#33276)
Currently, anyone with write permissions to a repo are able to rename
default or protected branches.

This change follows
[GitHub's](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch)
design by only allowing repo/site admins to change these branches.
However, it also follows are current design for protected branches and
only allows admins to modify branch names == branch protection rule
names. Glob-based rules cannot be renamed by anyone (as was already the
case, but we now catch `ErrBranchIsProtected` which we previously did
not catch, throwing a 500).
2 months ago
..
admin Remove some unnecessary template helpers (#33069) 3 months ago
auth Support for email addresses containing uppercase characters when activating user account (#32998) 3 months ago
devtest De-emphasize signed commits (#31160) 3 months ago
events Move context from modules to services (#29440) 1 year ago
explore Fix bleve fuzziness search (#33078) 3 months ago
feed Refactor context RefName and RepoAssignment (#33226) 2 months ago
healthcheck Always enable caches (#28527) 1 year ago
misc Refactor template & test related code (#32938) 3 months ago
org Use project's redirect url instead of composing url (#33058) 3 months ago
repo Only allow admins to rename default/protected branches (#33276) 2 months ago
shared [Feature] Private README.md for organization (#32872) 3 months ago
user Fix bleve fuzziness search (#33078) 3 months ago
base.go Prepare for support performance trace (#33286) 2 months ago
githttp.go Fix LFS route mock, realm, middleware names (#32488) 4 months ago
goget.go Make git clone URL could use current signed-in user (#33091) 2 months ago
home.go Refactor template & test related code (#32938) 3 months ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Move context from modules to services (#29440) 1 year ago
passkey.go Move context from modules to services (#29440) 1 year ago
swagger_json.go Move context from modules to services (#29440) 1 year ago
web.go Prepare for support performance trace (#33286) 2 months ago
webfinger.go Move context from modules to services (#29440) 1 year ago