Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
realm: Add owner_full_content_access to state_data.
Shubham Padia3d1707adb011
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex 74f7858996b..dc32057b982 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -20,6 +20,13 @@ format used by the Zulip server that they are interacting with.## Changes in Zulip 12.0+**Feature level 438**++* [`POST /register`](/api/register-queue): Added+ `realm_owner_full_content_access` field indicating whether the+ organization's security model allows owners to access all private+ content in this organization.+**Feature level 437*** [`GET /users`](/api/get-users), [`GETdiff --git a/version.py b/version.pyindex 485d11ac243..446ed5cb32a 100644--- a/version.py+++ b/version.py@@ -35,7 +35,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"# new level means in api_docs/changelog.md, as well as "**Changes**"# entries in the endpoint's documentation in `zulip.yaml`.-API_FEATURE_LEVEL = 437+API_FEATURE_LEVEL = 438# Bump the minor PROVISION_VERSION to indicate that folks should provision# only when going from an old version of the code to a newer version. Bumpdiff --git a/web/src/state_data.ts b/web/src/state_data.tsindex ecf3767d3fa..7f6f8305020 100644--- a/web/src/state_data.ts+++ b/web/src/state_data.ts@@ -478,6 +478,7 @@ export const realm_schema = z.object({realm_night_logo_source: z.string(),realm_night_logo_url: z.string(),realm_org_type: z.number(),+ realm_owner_full_content_access: z.boolean(),realm_password_auth_enabled: z.boolean(),realm_plan_type: z.number(),realm_playgrounds: z.array(realm_playground_schema),diff --git a/zerver/lib/events.py b/zerver/lib/events.pyindex a52a80a33ba..bbb82a047ed 100644--- a/zerver/lib/events.py+++ b/zerver/lib/events.py@@ -406,6 +406,8 @@ def fetch_initial_state_data(setting_group_id, anonymous_group_membership_data_dict)+ state["realm_owner_full_content_access"] = realm.owner_full_content_access+state["realm_create_public_stream_policy"] = (get_corresponding_policy_value_for_group_setting(realm,diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 16fefa2f7e8..e1aa05a81cc 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -20198,6 +20198,18 @@ paths:- 1000 = Other**Changes**: New in Zulip 6.0 (feature level 128).+ realm_owner_full_content_access:+ type: boolean+ description: |+ Present if `realm` is present in `fetch_event_types`.++ Whether the organization's security model allows owners to access+ all private content in this organization.++ Note that this security model configuration can only be changed+ via a command-line management command.++ **Changes**: New in Zulip 12.0 (feature level 438).realm_plan_type:type: integerdescription: |diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.pyindex 64e4d8b11f4..c76181f7bd8 100644--- a/zerver/tests/test_home.py+++ b/zerver/tests/test_home.py@@ -203,6 +203,7 @@ class HomeTest(ZulipTestCase):"realm_night_logo_url","realm_non_active_users","realm_org_type",+ "realm_owner_full_content_access","realm_password_auth_enabled","realm_plan_type","realm_playgrounds",