mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add MaxRepoCreation to EditUser API (#2781)
This commit is contained in:
		@@ -107,6 +107,9 @@ func EditUser(ctx *context.APIContext, form api.EditUserOption) {
 | 
			
		||||
	if form.AllowImportLocal != nil {
 | 
			
		||||
		u.AllowImportLocal = *form.AllowImportLocal
 | 
			
		||||
	}
 | 
			
		||||
	if form.MaxRepoCreation != nil {
 | 
			
		||||
		u.MaxRepoCreation = *form.MaxRepoCreation
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := models.UpdateUser(u); err != nil {
 | 
			
		||||
		if models.IsErrEmailAlreadyUsed(err) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user