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

Teacher got a message when click "Reply" in a forum discussion post, stated "Sorry, you cannot post in this discussion".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.7.1, 1.8
    • 1.7.1
    • Forum
    • None
    • Windows XP, PHP 5.1, Apache 2.2, MySQL 5.0, Moodle 1.7.1
    • MySQL
    • MOODLE_17_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE

      To reproduce the error :
      You have to have these setting :
      1-Course Settings : group mode=separate group.
      2-Create a forum, with group mode=separate group setting.
      3-Let a student to send a new discussion post in that forum.
      4-As a teacher, go to that forum, and enter into the post posted by that student.
      Then, as a teacher, you can see students' posts BUT when you click on the "reply" link in order
      to make a relpy to student, you will get the following error :
      "Sorry, you cannot post in this discussion".

      Meaning, as a teacher you can NOT reply to students' posts.

      My solution to this bug:
      In .../mod/forum/post.php :
      Change the follwing line:
      has_capability('moodle/site:accessallgroups', $modcontext, NULL, false)
      Into :
      has_capability('moodle/site:accessallgroups', $coursecontext, NULL, false)

      and it should work.

            dougiamas Martin Dougiamas
            elahee OEE_Dev KW_Univ (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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