mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 10:44:12 +01:00 
			
		
		
		
	Fix renaming bug (#1786)
This commit is contained in:
		
							parent
							
								
									98ae013e90
								
							
						
					
					
						commit
						ff2464c87d
					
				@ -68,7 +68,7 @@ func checkContextUser(ctx *context.Context, uid int64) *models.User {
 | 
				
			|||||||
// Create render creating repository page
 | 
					// Create render creating repository page
 | 
				
			||||||
func Create(ctx *context.Context) {
 | 
					func Create(ctx *context.Context) {
 | 
				
			||||||
	if !ctx.User.CanCreateRepo() {
 | 
						if !ctx.User.CanCreateRepo() {
 | 
				
			||||||
		ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.RepoCreationNum()), tplCreate, nil)
 | 
							ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.MaxCreationLimit()), tplCreate, nil)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ctx.Data["Title"] = ctx.Tr("new_repo")
 | 
						ctx.Data["Title"] = ctx.Tr("new_repo")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user