UI preventing org repo creation as well if user org limit is reached #30011
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Milestone
Scenario
MAX_CREATION_LIMIT = 0
to prevent random new users from spamming our instanceDev
which hasCreate repositories
enabledProblem
Create Repository
is disabled in caseCanCreateRepo == false
:gitea/templates/repo/create.tmpl
Line 212 in 5c91d79
CanCreateRepo
checks whether the user already has too many personal repos:gitea/models/user/user.go
Lines 240 to 251 in 5c91d79
Create repositories
permission in their org!Solutions
CanCreateRepo
value should only influence creation of a personal repoNote that I was not able to reproduce the issue on the demo instance, because there is no repo count limit and also it seems like you can't create orgs there..
Screenshots
Trying to create a new repo

testrepo45
undertestorg
organization, note the banner telling me there is a limit:Submit button is disabled:

Repo create works anyway when enabling the submit button by hand:

Gitea Version
v1.21.9
The text was updated successfully, but these errors were encountered: