mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Rename RepoCreationNum -> MaxCreationLimit (#1766)
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							de39d09caa
						
					
				
				
					commit
					7b907ed348
				
			@@ -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
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user