Moodle
  1. Moodle
  2. MDL-10664

Teachers can't respond on hidden forums

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2
    • Fix Version/s: 1.9
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      Debian etch, mysql 5.1
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Non edition teachers are not allowed to respond to topics on hidden forums.

      They can add new discussion topics, and the can see all the messages, but they can answer previously sent messages.

      I has been playing with permissions but no way to solve the problem...

      Moodle Docs explain that hidden forums are the way to create teacher forums. Above I copy and paste...

      http://docs.moodle.org/en/Upgrading_to_Moodle_1.7#Teacher_forums
      -----------
      Teacher forums

      Prior to Moodle 1.7, each course had a teacher forum, accessible via a link in the course administration block. During the upgrade to 1.7, empty teacher forums are deleted. Teacher forums containing forum posts are moved to section 0 of a course and are hidden.

      A hidden standard forum may be used if a teacher forum is required in a new course.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Ann Adamcik added a comment -

            Here's a fix for this:

            RCS file: /cvsroot/moodle/moodle/mod/forum/post.php,v
            retrieving revision 1.134.2.10
            diff -c -r1.134.2.10 post.php

                • post.php 22 Aug 2007 20:03:46 -0000 1.134.2.10
                • post.php 24 Sep 2007 18:29:07 -0000
                  ***************
                • 165,171 ****
                  print_error('nopostdiscussion', 'forum');
                  }
                  }
                  ! if (!$cm->visible and !has_capability('moodle/course:manageactivities', $coursecontext)) { error(get_string("activityiscurrentlyhidden")); }
                  }
                  — 165,171 ----
                  print_error('nopostdiscussion', 'forum');
                  }
                  }
                  ! if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $coursecontext)) { error(get_string("activityiscurrentlyhidden")); }

                  }

            Show
            Ann Adamcik added a comment - Here's a fix for this: RCS file: /cvsroot/moodle/moodle/mod/forum/post.php,v retrieving revision 1.134.2.10 diff -c -r1.134.2.10 post.php post.php 22 Aug 2007 20:03:46 -0000 1.134.2.10 post.php 24 Sep 2007 18:29:07 -0000 *************** 165,171 **** print_error('nopostdiscussion', 'forum'); } } ! if (!$cm->visible and !has_capability('moodle/course:manageactivities', $coursecontext)) { error(get_string("activityiscurrentlyhidden")); } } — 165,171 ---- print_error('nopostdiscussion', 'forum'); } } ! if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $coursecontext)) { error(get_string("activityiscurrentlyhidden")); } }
            Hide
            Stuart Anderson added a comment -

            I can confirm this fix appears to work. Many thanks Ann. Moodle.org: Please, please introduce this simple fix into the next released code!!

            Show
            Stuart Anderson added a comment - I can confirm this fix appears to work. Many thanks Ann. Moodle.org: Please, please introduce this simple fix into the next released code!!
            Hide
            Yolanda Ordoñez Rufat added a comment -

            I confirm this fix works on our 1.8.3 moodle with a 8.2.4 postgres installed in a SUSE Linux Enterprise Server 10 SP1

            Thanks to Ann

            Show
            Yolanda Ordoñez Rufat added a comment - I confirm this fix works on our 1.8.3 moodle with a 8.2.4 postgres installed in a SUSE Linux Enterprise Server 10 SP1 Thanks to Ann
            Hide
            Ann Adamcik added a comment -

            This fix does appear to have made it into 1.9, but the notes under the version control tab seem to be referring to a different bug. This can probably be closed.

            Show
            Ann Adamcik added a comment - This fix does appear to have made it into 1.9, but the notes under the version control tab seem to be referring to a different bug. This can probably be closed.
            Hide
            Martin Dougiamas added a comment -

            Yes, Dan fixed this in MDL-13255

            Show
            Martin Dougiamas added a comment - Yes, Dan fixed this in MDL-13255
            Hide
            Paolo Oprandi added a comment -

            This still appears to be a problem in 1.95 if you have two roles i.e. one that can see hidden forums and one that can't

            Show
            Paolo Oprandi added a comment - This still appears to be a problem in 1.95 if you have two roles i.e. one that can see hidden forums and one that can't
            Hide
            Helen Foster added a comment -

            Hi Paolo,

            Assuming you've not done so already, please could you create a new issue for the problem you mention, providing the exact steps to reproduce it.

            Show
            Helen Foster added a comment - Hi Paolo, Assuming you've not done so already, please could you create a new issue for the problem you mention, providing the exact steps to reproduce it.
            Hide
            Helen Foster added a comment -

            Paolo, thanks for creating issue MDL-20265.

            Following Ann's suggestion and closing this issue.

            Show
            Helen Foster added a comment - Paolo, thanks for creating issue MDL-20265 . Following Ann's suggestion and closing this issue.

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: