summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-05-24 02:27:08 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-24 08:27:08 +0800
commit7b907ed348595e45d2d69cdabf70bfbbbb41c3ee (patch)
tree65b6c2b6467779529ea0e75f5f5a4e169d35f67b /models/user.go
parentde39d09caa2469729af5ad4cf225ab4e52aa6203 (diff)
downloadgitea-7b907ed348595e45d2d69cdabf70bfbbbb41c3ee.tar.gz
gitea-7b907ed348595e45d2d69cdabf70bfbbbb41c3ee.zip
Rename RepoCreationNum -> MaxCreationLimit (#1766)
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.go b/models/user.go
index 5fe72f923a..3aef510d7c 100644
--- a/models/user.go
+++ b/models/user.go
@@ -211,8 +211,8 @@ func (u *User) HasForkedRepo(repoID int64) bool {
return has
}
-// RepoCreationNum returns the number of repositories created by the user
-func (u *User) RepoCreationNum() int {
+// MaxCreationLimit returns the number of repositories a user is allowed to create
+func (u *User) MaxCreationLimit() int {
if u.MaxRepoCreation <= -1 {
return setting.Repository.MaxCreationLimit
}