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

[[nopostdiscussion]] for the simple discussion

XMLWordPrintable

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

      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

            skodak Petr Skoda
            hokahey Allen S. Franco (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.