mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	This adds a new special UserProfile flag can_change_user_emails(disabled by default) and the ability for changing the email address of users in the realm via update_user_backend. This is useful for allowing organizations to update user emails without needing to set up a SCIM integration, but since it gives the ability to hijack user accounts, it needs to be behind this additional permission and can't be just given to organization owners by default. Analogical to how the create_user_backend endpoint works.
		
			
				
	
	
		
			18 lines
		
	
	
		
			421 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			421 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Generated by Django 5.0.8 on 2024-09-02 20:36
 | |
| 
 | |
| from django.db import migrations, models
 | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration):
 | |
|     dependencies = [
 | |
|         ("zerver", "0615_system_bot_avatars"),
 | |
|     ]
 | |
| 
 | |
|     operations = [
 | |
|         migrations.AddField(
 | |
|             model_name="userprofile",
 | |
|             name="can_change_user_emails",
 | |
|             field=models.BooleanField(db_index=True, default=False),
 | |
|         ),
 | |
|     ]
 |