From 7f4adda35f7425b3be7ed708df46fe18477cfbd5 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Mon, 24 May 2021 18:45:53 +0200 Subject: [PATCH] VC/Zoom: Fix UndefinedError --- vc_zoom/indico_vc_zoom/templates/buttons.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vc_zoom/indico_vc_zoom/templates/buttons.html b/vc_zoom/indico_vc_zoom/templates/buttons.html index b0d5451..53f9f54 100644 --- a/vc_zoom/indico_vc_zoom/templates/buttons.html +++ b/vc_zoom/indico_vc_zoom/templates/buttons.html @@ -1,6 +1,6 @@ {% macro render_make_me_owner(event, vc_room, event_vc_room, extra_classes='') %} {% if session.user.identifier != vc_room.data['host'] - and session.user.identifier not in vc_room.data['alternative_hosts'] + and session.user.identifier not in vc_room.data.get('alternative_hosts', []) and event.can_manage(session.user) %}