mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	This commit adds the is_web_public field in the AbstractAttachment class. This is useful when validating user access to the attachment, as otherwise we would have to make a query in the db to check if that attachment was sent in a message in a web-public stream or not.
		
			
				
	
	
		
			24 lines
		
	
	
		
			570 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			570 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 2.2.14 on 2020-07-31 21:15
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('zerver', '0299_subscription_role'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AddField(
 | 
						|
            model_name='archivedattachment',
 | 
						|
            name='is_web_public',
 | 
						|
            field=models.BooleanField(default=False),
 | 
						|
        ),
 | 
						|
        migrations.AddField(
 | 
						|
            model_name='attachment',
 | 
						|
            name='is_web_public',
 | 
						|
            field=models.BooleanField(default=False),
 | 
						|
        ),
 | 
						|
    ]
 |