mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	streams: Add can_administer_channel_group as a stream setting.
We have not added current user as the default for new channels in this commit.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							44b498f96b
						
					
				
				
					commit
					eb943d54a9
				
			@@ -66,7 +66,6 @@ from zerver.models import (
 | 
			
		||||
    Client,
 | 
			
		||||
    DirectMessageGroup,
 | 
			
		||||
    Message,
 | 
			
		||||
    NamedUserGroup,
 | 
			
		||||
    PreregistrationUser,
 | 
			
		||||
    RealmAuditLog,
 | 
			
		||||
    Recipient,
 | 
			
		||||
@@ -75,7 +74,6 @@ from zerver.models import (
 | 
			
		||||
    UserProfile,
 | 
			
		||||
)
 | 
			
		||||
from zerver.models.clients import get_client
 | 
			
		||||
from zerver.models.groups import SystemGroups
 | 
			
		||||
from zerver.models.messages import Attachment
 | 
			
		||||
from zerver.models.realm_audit_logs import AuditLogEventType
 | 
			
		||||
from zerver.models.scheduled_jobs import NotificationTriggers
 | 
			
		||||
@@ -103,11 +101,6 @@ class AnalyticsTestCase(ZulipTestCase):
 | 
			
		||||
        self.default_realm = do_create_realm(
 | 
			
		||||
            string_id="realmtest", name="Realm Test", date_created=self.TIME_ZERO - 2 * self.DAY
 | 
			
		||||
        )
 | 
			
		||||
        self.administrators_user_group = NamedUserGroup.objects.get(
 | 
			
		||||
            name=SystemGroups.ADMINISTRATORS,
 | 
			
		||||
            realm=self.default_realm,
 | 
			
		||||
            is_system_group=True,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
        # used to generate unique names in self.create_*
 | 
			
		||||
        self.name_counter = 100
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user