From 55a4813b71017d0aed18856eb15f9fb4ecd6a2be Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Tue, 9 Mar 2021 12:52:18 +0100 Subject: [PATCH] We don't want to allow teacher to restrict meetings to authorized users - LMS-5429 --- mod_form.php | 7 +++++++ view.php | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/mod_form.php b/mod_form.php index 773956c0..1674c09f 100644 --- a/mod_form.php +++ b/mod_form.php @@ -570,6 +570,12 @@ public function definition() { $mform->addHelpButton('option_jbh', 'option_jbh', 'zoom'); $mform->disabledIf('option_jbh', 'webinar', 'checked'); +/* KIZ MODIFICATION START + REASON: We don't want to allow teacher to restrict meetings to authorized users - LMS-5429. */ + // Add authenticated users field. + $mform->addElement('hidden', 'option_authenticated_users', $config->defaultauthusersoption); +/* KIZ MODIFICATION END */ +/* ORIGINAL START // Add authenticated users widget. $mform->addElement( 'advcheckbox', @@ -579,6 +585,7 @@ public function definition() { ); $mform->setDefault('option_authenticated_users', $config->defaultauthusersoption); $mform->addHelpButton('option_authenticated_users', 'option_authenticated_users', 'zoom'); + ORIGINAL END */ // Add show widget. $mform->addElement( diff --git a/view.php b/view.php index 9b89a2a3..1e9ffba9 100755 --- a/view.php +++ b/view.php @@ -426,6 +426,7 @@ function zoom_get_user_display_name($zoomuserid) { $table->data[] = [$strjoinlink, html_writer::link($zoom->join_url, $zoom->join_url, ['target' => '_blank'])]; } + // Show encryption type. if (!$zoom->webinar) { if ($config->showencryptiontype != ZOOM_ENCRYPTION_DISABLE) { @@ -448,8 +449,11 @@ function zoom_get_user_display_name($zoomuserid) { $table->data[] = [$strjoinbeforehost, $strjbh]; } + /* KIZ MODIFICATION START + REASON: We don't want to allow teacher to restrict meetings to authorized users - LMS-5429. // Show authentication. $table->data[] = [$strauthenticatedusers, ($zoom->option_authenticated_users) ? $stryes : $strno]; + KIZ MODIFICATION END */ // Output table. echo html_writer::table($table);