Skip to content

Commit

Permalink
We don't want to allow teacher to restrict meetings to authorized use…
Browse files Browse the repository at this point in the history
…rs - LMS-5429
  • Loading branch information
abias authored and alina-kiz committed Nov 13, 2023
1 parent ca6bcd5 commit 55a4813
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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(
Expand Down
4 changes: 4 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit 55a4813

Please sign in to comment.