Merge pull request #3798 from jneilliii/fix_webcam_permissions

if webcam permissions are not set for user this will prevent the webc…
This commit is contained in:
Gina Häußge authored and GitHub committed 2020-11-09 14:18:51 +01:00
commit 84b41e70a6
1 file changed
+2
@@ -1,4 +1,5 @@
{% if enableWebcam %}
<!-- ko if: loginState.hasPermissionKo(access.permissions.WEBCAM) -->
<div id="webcam_hls_container" tabindex="0" data-bind="visible: webcamHlsEnabled()">
<video id="webcam_hls" muted autoplay style="width: 100%"/>
</div>
@@ -40,6 +41,7 @@
<div data-bind="visible: keycontrolPossible() && loginState.hasPermissionKo(access.permissions.WEBCAM)() && loginState.hasPermissionKo(access.permissions.CONTROL)()">
<small class="muted">{{ _("Hint: If you move your mouse over the picture, you enter keyboard control mode.") }}</small>
</div>
<!-- /ko -->
{% endif %}
<div class="jog-panel" style="display: none;" data-bind="visible: loginState.hasPermissionKo(access.permissions.CONTROL)">