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:
Shubham Padia
2024-11-18 09:10:37 +00:00
committed by Tim Abbott
parent 44b498f96b
commit eb943d54a9
17 changed files with 472 additions and 15 deletions

View File

@@ -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