mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-30 17:47:55 +00:00 
			
		
		
		
	Merge #3376
3376: fix: PATCH /user will overwrite existing "forward_destination" r=mergify[bot] a=DrPsychick ## What type of PR? bug-fix for #3374 ## What does this PR do? ### Related issue(s) - closes #3374 ## Prerequisites - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: DrPsychick <drpsychick@drsick.net>
This commit is contained in:
		| @@ -242,7 +242,6 @@ class User(Resource): | ||||
|         if 'forward_enabled' in data: | ||||
|             user_found.forward_enabled = data['forward_enabled'] | ||||
|         if 'forward_destination' in data and len(data['forward_destination']) > 0: | ||||
|             if len(data['forward_destination']) == 0: | ||||
|             user_found.forward_destination = data['forward_destination'] | ||||
|         if 'forward_keep' in data: | ||||
|             user_found.forward_keep = data['forward_keep'] | ||||
|   | ||||
							
								
								
									
										1
									
								
								towncrier/newsfragments/3374.bugfix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								towncrier/newsfragments/3374.bugfix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| Fix a bug preventing user "forward_destination" to be updated with a PATCH request | ||||
		Reference in New Issue
	
	Block a user
	![150027869+bors-mailu[bot]@users.noreply.github.com](/assets/img/avatar_default.png) bors-mailu[bot]
					bors-mailu[bot]