mirror of
1
Fork 0
forgejo/routers/web
Gusted 5488ec7d96
security: add permission check to 'delete branch after merge'
- Add a permission check that the doer has write permissions to the head
repository if the the 'delete branch after merge' is enabled when
merging a pull request.
- Unify the checks in the web and API router to `DeleteBranchAfterMerge`.
- Added integration tests.

(cherry picked from commit 266e0b2ce9)

Conflicts:
	tests/integration/pull_merge_test.go
  trivial context conflict
2024-10-28 06:32:10 +01:00
..
admin enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
auth add CfTurnstileSitekey context data to all captcha templates (#31874) (#31876) 2024-08-25 17:41:08 +02:00
devtest
events
explore
feed Teach activities.GetFeeds() how to avoid returning duplicates 2024-05-09 18:37:30 +00:00
healthcheck
misc
org Add missed return after `ctx.ServerError` (#31130) (#31133) 2024-05-31 14:35:19 +02:00
repo security: add permission check to 'delete branch after merge' 2024-10-28 06:32:10 +01:00
shared
user enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go
swagger_json.go
web.go
webfinger.go