Skip to content

Commit

Permalink
Merge branch 'wip-76521-m310' into MOODLE_310_STABLE
Browse files Browse the repository at this point in the history
* wip-76521-m310:
  bug fix in group membership user creation restriction check
  • Loading branch information
weilai-irl committed Jul 2, 2021
2 parents f5959d0 + 0c07521 commit 4941ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local/o365/classes/feature/usersync/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ protected function check_usercreationrestriction($aaddata) {
return false;
}
$usersgroups = $apiclient->get_user_groups($aaddata['id']);
foreach ($usersgroups['value'] as $usergroup) {
foreach ($usersgroups as $usergroup) {
if ($group['id'] === $usergroup) {
return true;
}
Expand Down

0 comments on commit 4941ce6

Please sign in to comment.