From 7b907ed348595e45d2d69cdabf70bfbbbb41c3ee Mon Sep 17 00:00:00 2001 From: Jonas Östanbäck Date: Wed, 24 May 2017 02:27:08 +0200 Subject: Rename RepoCreationNum -> MaxCreationLimit (#1766) --- models/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models') 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 } -- cgit v1.2.3