mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	This commit replaces 'allow_message_deleting' boolean setting with an integer setting 'delete_own_message_policy'. We have a separate dropdown now for deciding which user-roles can delete messages sent by themselves and the time-limit setting droddown is different. This new setting has two options - everyone and admins only. Other options including moderators will be added further. We also remove the "Never" option from the original time-limit dropdown, as admins are always allowed to delete message. This never option resembled the case of only admins being allowed to delete but this state is now resembled by setting the dropdown to "admins only" and we also disable the time-limit dropdown in this case as admins are allowed to delete irrespective of limit. Note, this setting is only for deleting messages sent by the deleting user themselves, and only admins are allowed to delete messages sent by others as before.
		
			
				
	
	
		
			18 lines
		
	
	
		
			360 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			360 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Generated by Django 3.2.4 on 2021-06-09 13:17
 | |
| 
 | |
| from django.db import migrations
 | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration):
 | |
| 
 | |
|     dependencies = [
 | |
|         ("zerver", "0356_migrate_to_delete_own_message_policy"),
 | |
|     ]
 | |
| 
 | |
|     operations = [
 | |
|         migrations.RemoveField(
 | |
|             model_name="realm",
 | |
|             name="allow_message_deleting",
 | |
|         ),
 | |
|     ]
 |