mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Add MaxRepoCreation to EditUser API (#2781)
This commit is contained in:
		
					parent
					
						
							
								7e9b42c87d
							
						
					
				
			
			
				commit
				
					
						5a9709fa9d
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -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) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue