Merge branch 'MDL-86293' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -698,8 +698,8 @@ class api {
|
||||
return;
|
||||
}
|
||||
|
||||
// No userids? don't bother doing anything.
|
||||
if (empty($userids)) {
|
||||
// No user IDs or this provider does not manage users? No action required.
|
||||
if (empty($userids) || !$this->communication->supports_user_features()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ class update_room_membership_task extends adhoc_task {
|
||||
// Call the communication api to action the operation.
|
||||
$communication = processor::load_by_id($data->id);
|
||||
|
||||
if ($communication === null) {
|
||||
mtrace("Skipping room creation because the instance does not exist");
|
||||
if ($communication === null || !$communication->supports_user_features()) {
|
||||
mtrace("Skipping room membership because the instance does not exist or does not support user features");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user