diff --git a/vc_zoom/README.md b/vc_zoom/README.md index f86394a..a3f0214 100644 --- a/vc_zoom/README.md +++ b/vc_zoom/README.md @@ -21,6 +21,7 @@ - Always show the full join link and passcode to event managers - The meeting passcode can be restricted to registered participants - Show "Make me host" button in the management area and in contributions/sessions as well +- Warn the user if they delete a Zoom meeting linked to multiple events if they aren't the host **Breaking change:** The email domains are now stored as a list of strings instead of a comma-separated list. You need to update them in the plugin settings. diff --git a/vc_zoom/indico_vc_zoom/plugin.py b/vc_zoom/indico_vc_zoom/plugin.py index 9f09455..1914dfa 100644 --- a/vc_zoom/indico_vc_zoom/plugin.py +++ b/vc_zoom/indico_vc_zoom/plugin.py @@ -189,6 +189,12 @@ class ZoomPlugin(VCPluginMixin, IndicoPlugin): form.password.data = gen_random_password() return form + def get_extra_delete_msg(self, vc_room, event_vc_room): + host = principal_from_identifier(vc_room.data['host']) + if host == session.user or len(vc_room.events) <= 1: + return '' + return render_plugin_template('vc_zoom:extra_delete_msg.html', host=host.full_name) + def _extend_indico_cli(self, sender, **kwargs): return cli diff --git a/vc_zoom/indico_vc_zoom/templates/extra_delete_msg.html b/vc_zoom/indico_vc_zoom/templates/extra_delete_msg.html new file mode 100644 index 0000000..c936287 --- /dev/null +++ b/vc_zoom/indico_vc_zoom/templates/extra_delete_msg.html @@ -0,0 +1,7 @@ +

+ {% trans %} + The host of this Zoom meeting is {{ host }}. In case you want + to delete this Zoom meeting from all events, please make sure that they do not + use it for other events that may still need it! + {% endtrans %} +