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:
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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user