Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
izendegi committed Dec 20, 2024
1 parent c1e9e90 commit b116bf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ private function get_least_recently_active_paid_user_id() {
continue;
}
// Skip the protected group.
if (!in_array($this->protectedgroup,$user->group_ids ?? array(),true)) {
if (!in_array($this->protectedgroup, $user->group_ids ?? array(), true)) {
continue;
}
// We need the login time.
Expand Down Expand Up @@ -502,14 +502,14 @@ private function get_least_recently_active_paid_user_id() {
public function get_groups() {
// Classic: group:read:admin.
// Granular: group:read:list_groups:admin.
// Not essential scope, execute only if scope has been granted
// Not essential scope, execute only if scope has been granted.
if ($this->has_scope(['group:read:list_groups:admin']) || $this->has_scope(['group:read:admin'])) {
try {
$response = $this->make_call('/groups');

} catch (moodle_exception $error) {
}
catch (moodle_exception $error) {
$response = '';
}
}
} else {
$response = '';
}
Expand Down
8 changes: 4 additions & 4 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@
1
);
$settings->add($recycleonjoin);
// Only call to the web services and load the setting if the connection is OK

// Only call to the web services and load the setting if the connection is OK.
if (isset($status) && $status === 'connectionok') {
$zoomgrps = [];
$groupobj = zoom_webservice()->get_groups();
Expand All @@ -184,8 +184,8 @@

$protectedgroup = new admin_setting_configselect(
'zoom/protectedgroup',
get_string('protectedgroup','mod_zoom'),
get_string('protectedgroup_desc','mod_zoom'),
get_string('protectedgroup', 'mod_zoom'),
get_string('protectedgroup_desc', 'mod_zoom'),
0,
$zoomgrps);
$settings->add($protectedgroup);
Expand Down

0 comments on commit b116bf6

Please sign in to comment.