realm: Delete invite_to_stream_policy.

This commit is contained in:
Shubham Padia
2025-01-14 07:49:56 +00:00
committed by Tim Abbott
parent 275a1a4c69
commit 24341076a3
2 changed files with 16 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
# Generated by Django 5.0.10 on 2025-01-14 07:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("zerver", "0651_alter_realm_can_add_subscribers_group"),
]
operations = [
migrations.RemoveField(
model_name="realm",
name="invite_to_stream_policy",
)
]

View File

@@ -329,11 +329,6 @@ class Realm(models.Model): # type: ignore[django-manager-missing] # django-stub
"UserGroup", on_delete=models.RESTRICT, related_name="+"
)
# Who in the organization is allowed to invite other users to streams.
invite_to_stream_policy = models.PositiveSmallIntegerField(
default=CommonPolicyEnum.MEMBERS_ONLY
)
# UserGroup which is allowed to add subscribers to channels.
can_add_subscribers_group = models.ForeignKey(
"UserGroup", on_delete=models.RESTRICT, related_name="+"