version: Move minimum desktop version configuration to version.py.

This makes it relatively easy for a system administrator to
temporarily override these values after a desktop app security
release that they want to ensure all of their users take.

We're not putting this in settings, since we don't want to encourage
accidental long-term overrides of these important-to-security values.
This commit is contained in:
Tim Abbott
2020-04-01 13:11:26 -07:00
parent b79fbf9239
commit 67da8e8431
3 changed files with 25 additions and 4 deletions

View File

@@ -13,6 +13,13 @@ LATEST_MAJOR_VERSION = "2.1"
LATEST_RELEASE_VERSION = "2.1.2"
LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/12/13/zulip-2-1-released/"
# Versions of the desktop app below DESKTOP_MINIMUM_VERSION will be
# prevented from connecting to the Zulip server. Versions above
# DESKTOP_MINIMUM_VERSION but below DESKTOP_WARNING_VERSION will have
# a banner at the top of the page asking the user to upgrade.
DESKTOP_MINIMUM_VERSION = "5.0.0"
DESKTOP_WARNING_VERSION = "5.0.0"
# 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. Bump
# the major version to indicate that folks should provision in both