From 93b5e0df61c815d167346fe1786b31f97ea4dc78 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 7 Jun 2018 11:33:58 -0700 Subject: [PATCH] custom profile fields: Extract a separate various for whether enabled. This will make it possible to do this on a per-organization basis. --- templates/zerver/app/settings_overlay.html | 2 +- zerver/context_processors.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/zerver/app/settings_overlay.html b/templates/zerver/app/settings_overlay.html index 2637aaa487..eb0e442ce1 100644 --- a/templates/zerver/app/settings_overlay.html +++ b/templates/zerver/app/settings_overlay.html @@ -88,7 +88,7 @@
{{ _('Filter settings') }}
- {% if development_environment %} + {% if custom_profile_fields_enabled %}
  • {{ _('Custom profile fields') }}
    diff --git a/zerver/context_processors.py b/zerver/context_processors.py index 00d7807ba8..8124147713 100644 --- a/zerver/context_processors.py +++ b/zerver/context_processors.py @@ -107,6 +107,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]: 'privacy_policy': settings.PRIVACY_POLICY, 'login_url': settings.HOME_NOT_LOGGED_IN, 'only_sso': settings.ONLY_SSO, + 'custom_profile_fields_enabled': settings.DEVELOPMENT, 'external_host': settings.EXTERNAL_HOST, 'external_uri_scheme': settings.EXTERNAL_URI_SCHEME, 'realm_invite_required': realm_invite_required,