gitea/routers/web
Lunny Xiao cf2d332443
Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547)
Backport #32528

- Move models/GetForks to services/FindForks
- Add doer as a parameter of FindForks to check permissions
- Slight performance optimization for get forks API with batch loading
of repository units
- Add tests for forking repository to organizations

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-11-19 04:08:32 +00:00
..
admin Add missed return after ctx.ServerError (#31130) (#31133) 2024-05-28 12:47:11 +02:00
auth Fix oauth2 error handle not return immediately (#32514) (#32516) 2024-11-15 11:27:04 +08:00
devtest Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Respect UI.ExploreDefaultSort setting again (#32357) (#32385) 2024-10-31 13:49:09 +08:00
feed Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-01 10:16:19 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Make sure git version&feature are always prepared (#30877) (#30879) 2024-05-07 02:07:33 +00:00
org Fix sort order for organization home and user profile page (#31921) (#31922) 2024-09-02 07:58:18 +00:00
repo Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547) 2024-11-19 04:08:32 +00:00
shared Fix various problems around projects board view (#30696) (#30902) 2024-05-08 15:46:21 +00:00
user Fix disable 2fa bug (#32320) (#32330) 2024-10-25 17:54:56 +08:00
base.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) (#32397) 2024-11-01 03:53:59 +00:00
githttp.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
goget.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Fix the permission check for user search API and limit the number of returned users for /user/search (#32310) 2024-10-23 04:56:13 +00:00
webfinger.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00