Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

communities: Include orgs without invite or email domain restrictions.

Lauryn Menard2e23318872dd
diff --git a/corporate/views/portico.py b/corporate/views/portico.py
index 1f69b05ac56..1011d9f15f1 100644
--- a/corporate/views/portico.py
+++ b/corporate/views/portico.py
@@ -115,7 +115,8 @@ def communities_view(request: HttpRequest) -> HttpResponse:
want_advertise_in_communities_directory=True
).order_by("name")
for realm in want_to_be_advertised_realms:
- if realm.allow_web_public_streams_access():
+ open_to_public = not realm.invite_required and not realm.emails_restricted_to_domains
+ if realm.allow_web_public_streams_access() or open_to_public:
eligible_realms.append(
{
"id": realm.id,