settings: Show enable_spectator_access option if server-setting is enabled.

We show the "Allow creating web-public streams" setting in UI only if
settings.WEB_PUBLIC_STREAMS_ENABLED is true on the server.
This commit is contained in:
Sahil Batra 2021-11-23 16:37:58 +05:30 committed by Tim Abbott
parent 2c1a87166c
commit 260851cd0e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@
setting_name="realm_enable_spectator_access"
prefix="id_"
is_checked=realm_enable_spectator_access
render_only=page_params.development_environment
render_only=page_params.server_web_public_streams_enabled
label=admin_settings_label.realm_enable_spectator_access}}
<div class="input-group">
<label for="realm_create_private_stream_policy" class="dropdown-title">{{t "Who can create private streams" }}</label>