0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 05:41:58 +01:00
gitea/routers/api/v1
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
..
activitypub Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
admin Fix empty field login_name in API response JSON when creating user (#30511) 2024-04-16 13:13:00 +08:00
misc Fix missing images in editor preview due to wrong links (#31299) (#31393) 2024-06-17 15:07:21 +08:00
notify Clean up log messages (#30313) 2024-04-07 19:17:06 +08:00
org Fix bug when a token is given public only (#32204) (#32218) 2024-10-09 02:16:37 +00:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
repo Refactor find forks and fix possible bugs that weak permissions check (#32528) (#32547) 2024-11-19 04:08:32 +00:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Update misspell to 0.5.1 and add misspellings.csv (#30573) 2024-04-27 08:03:49 +00:00
swagger feat(api): implement branch/commit comparison API (#30349) 2024-04-16 11:45:04 +08:00
user Fix bug when a token is given public only (#32204) (#32218) 2024-10-09 02:16:37 +00:00
utils Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api.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