maxNumRepos returns the maximum number of repositories that the user can have direct ownership.
()
| 1311 | // maxNumRepos returns the maximum number of repositories that the user can have |
| 1312 | // direct ownership. |
| 1313 | func (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. |
| 1321 | func (u *User) canCreateRepo() bool { |
no outgoing calls
no test coverage detected