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');
}
} |
Please help, thanks in advance
Allen
- duplicates
-
MDL-14270 Separate groups and forums
-
- Closed
-