1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-14 12:16:31 +02:00

Merge branch 'MDL-73620-master_grouperror' of https://github.com/alexmorrisnz/moodle

This commit is contained in:
Sara Arjona 2022-11-17 18:00:21 +01:00
commit 2322d783dc

@ -992,7 +992,7 @@ if ($mformpost->is_cancelled()) {
forum_check_blocking_threshold($thresholdwarning);
foreach ($groupstopostto as $group) {
if (!$capabilitymanager->can_create_discussions($USER, $groupid)) {
if (!$capabilitymanager->can_create_discussions($USER, $group)) {
throw new \moodle_exception('cannotcreatediscussion', 'forum');
}