Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10986

[[nopostdiscussion]] for the simple discussion

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.8.2
    • None
    • Forum, Groups
    • None
    • linux(slackaware) 10.2, mysql 4.1x
    • MySQL
    • MOODLE_18_STABLE

    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))

      { error(get_string("activityiscurrentlyhidden")); }

      Please help, thanks in advance

      Allen

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              hokahey Allen S. Franco
              Nobody Nobody
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: