Details
Description
Hi,
I have five groups with some people inside then, and i create a forum with the type "single simple discussion" and put the option to "separete groups" to the students groups who i have, but the students can answer because shows this message:
[[nopostdiscussion]]
I follow the code and a i see this on post.php:
if (groupmode($course, $cm)) { // Make sure user can post here
$mygroupid = mygroupid($course->id);
if (!((empty($mygroupid) and $discussion->groupid == -1)
| (ismember($discussion->groupid)/$mygroupid == $discussion->groupid/) |
|---|
| has_capability('moodle/site:accessallgroups', $modcontext, NULL, false) )) {
print_error('nopostdiscussion', 'forum');
} } if (!$cm->visible and !has_capability('moodle/course:manageactivities', $coursecontext)) tok1-block-tok |
Please help, thanks in advance
Allen
Issue Links
| This issue duplicates: | ||||
| MDL-14270 | Separate groups and forums |
|
|
|
Hi
we have the same problem with the admin user. We cant answer in a forum with groups