MCPcopy Create free account
hub / github.com/gogs/gogs / maxNumRepos

Method maxNumRepos

internal/database/users.go:1313–1318  ·  view source on GitHub ↗

maxNumRepos returns the maximum number of repositories that the user can have direct ownership.

()

Source from the content-addressed store, hash-verified

1311// maxNumRepos returns the maximum number of repositories that the user can have
1312// direct ownership.
1313func (u *User) maxNumRepos() int {
1314 if u.MaxRepoCreation <= -1 {
1315 return conf.Repository.MaxCreationLimit
1316 }
1317 return u.MaxRepoCreation
1318}
1319
1320// canCreateRepo returns true if the user can create a repository.
1321func (u *User) canCreateRepo() bool {

Callers 3

canCreateRepoMethod · 0.95
CreateRepositoryFunction · 0.80
ForkRepositoryFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected