1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-01 09:11:40 +02:00
gitea/services/repository
Xinyu Zhou 7cc7db73b9
Add option to prohibit fork if user reached maximum limit of repositories (#21848)
If user has reached the maximum limit of repositories:

- Before
  - disallow create
  - allow fork without limit
- This patch:
  - disallow create
  - disallow fork
- Add option `ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT` (Default **true**) :
enable this allow user fork repositories without maximum number limit

fixed https://github.com/go-gitea/gitea/issues/21847

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
2022-12-27 15:21:14 -06:00
..
archiver
files Use complete SHA to create and query commit status (#22244) 2022-12-27 21:12:49 +08:00
adopt_test.go
adopt.go Do not list active repositories as unadopted (#22034) 2022-12-16 16:58:56 +08:00
avatar_test.go
avatar.go
branch.go
cache.go
check.go
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
fork.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
hooks.go
lfs.go
main_test.go
push.go
repository_test.go
repository.go
review_test.go
review.go
template.go
transfer_test.go
transfer.go