MDL-43828 forum: allow to select single available group when posting
This commit is contained in:
@@ -166,7 +166,7 @@ class mod_forum_post_form extends moodleform {
|
||||
$groupdata = groups_get_activity_allowed_groups($cm);
|
||||
$groupcount = count($groupdata);
|
||||
$modulecontext = context_module::instance($cm->id);
|
||||
$contextcheck = has_capability('mod/forum:movediscussions', $modulecontext) && empty($post->parent) && $groupcount > 1;
|
||||
$contextcheck = has_capability('mod/forum:movediscussions', $modulecontext) && empty($post->parent) && $groupcount;
|
||||
if ($contextcheck) {
|
||||
$groupinfo = array('0' => get_string('allparticipants'));
|
||||
foreach ($groupdata as $grouptemp) {
|
||||
|
||||
Reference in New Issue
Block a user