mirror of https://github.com/zulip/zulip.git
custom profile fields: Extract a separate various for whether enabled.
This will make it possible to do this on a per-organization basis.
This commit is contained in:
parent
9955580251
commit
93b5e0df61
|
@ -88,7 +88,7 @@
|
|||
<i class="icon icon-vector-font"></i>
|
||||
<div class="text">{{ _('Filter settings') }}</div>
|
||||
</li>
|
||||
{% if development_environment %}
|
||||
{% if custom_profile_fields_enabled %}
|
||||
<li tabindex="0" data-section="profile-field-settings">
|
||||
<i class="icon icon-vector-user"></i>
|
||||
<div class="text">{{ _('Custom profile fields') }}</div>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue