gitea/services/repository
Lunny Xiao 4f879a00df
Refactor find forks and fix possible bugs that weak permissions check (#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-18 03:06:25 +00:00
..
archiver
commitstatus
files
adopt_test.go
adopt.go
avatar_test.go
avatar.go
branch.go
cache.go
check.go
collaboration_test.go
collaboration.go
commit.go
contributors_graph_test.go
contributors_graph.go
create_test.go
create.go
delete_test.go
delete.go
fork_test.go
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 2024-11-18 03:06:25 +00:00
generate_test.go
generate.go
hooks.go
init.go
lfs_test.go
lfs.go
license_test.go
license.go
main_test.go
migrate.go
push.go
repository_test.go
repository.go
review_test.go
review.go
setting.go
template.go
transfer_test.go
transfer.go