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

problem with mod/forums/user.php when course is marked as unavailable to students

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      (Difficulty: easy, requires student and teacher access to a course)

      1. Create a course with a forum activity (simple forum is fine).
      2. Enroll Student A in the course
      3. Log in to the course as Student A.
      4. As Student A, post in the forum activity.
      5. Enroll Teacher 1 in the course
      6. Log in as Teacher 1.
      7. Ensure the course's visibility to is set to show (e.g. Administration->Course administration->Edit settings->Visible->Show). Save your changes
      8. From the course's main page, in the Navigation block, under current course, click "Participants"
      9. From the participants page, click Student A's name (to get to Student A's course profile)
      10. In the Navigation block, under current course, under Student A's name, expand Forum posts, and click "Posts"
      11. TEST: make sure that you can view the post made in step #4
      12. Set the course's visibility to hidden (e.g. Administration->Course administration->Edit settings->Visible->Hide). Save your changes.
      13. From the course's main page, in the Navigation block, under current course, click "Participants"
      14. From the participants page, click Student A's name (to get to Student A's course profile)
      15. In the Navigation block, under current course, under Student A's name, expand Forum posts, and click "Posts"
      16. TEST: make sure that you can view the post made in step #4

      Admin test

      1. Go to the course, make sure the admin is NOT enrolled in it
      2. As the admin post the forum
      3. Login as the teacher and construct the URL to the forum posts made by the admin
      4. Make sure you can visit this page when the course is hidden, and visible.
      Show
      (Difficulty: easy, requires student and teacher access to a course) Create a course with a forum activity (simple forum is fine). Enroll Student A in the course Log in to the course as Student A. As Student A, post in the forum activity. Enroll Teacher 1 in the course Log in as Teacher 1. Ensure the course's visibility to is set to show (e.g. Administration->Course administration->Edit settings->Visible->Show). Save your changes From the course's main page, in the Navigation block, under current course, click "Participants" From the participants page, click Student A's name (to get to Student A's course profile) In the Navigation block, under current course, under Student A's name, expand Forum posts, and click "Posts" TEST: make sure that you can view the post made in step #4 Set the course's visibility to hidden (e.g. Administration->Course administration->Edit settings->Visible->Hide). Save your changes. From the course's main page, in the Navigation block, under current course, click "Participants" From the participants page, click Student A's name (to get to Student A's course profile) In the Navigation block, under current course, under Student A's name, expand Forum posts, and click "Posts" TEST: make sure that you can view the post made in step #4 Admin test Go to the course, make sure the admin is NOT enrolled in it As the admin post the forum Login as the teacher and construct the URL to the forum posts made by the admin http://fmc.in.moodle.com/sm/mod/forum/user.php?id=USERID&course=COURSEID Make sure you can visit this page when the course is hidden, and visible.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-38142-master

      Description

      When a course is set not available to students, attempts by instructors to view their forum participation via My courses -> Course name -> Participants -> Student name -> Forum posts -> [Posts | Discussions] yields the following error:

      forum/notenrolled

      Works fine when course is set as available to students.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              mlkumass Michael Kieras
              Peer reviewer:
              Frédéric Massart
              Integrator:
              Andrew Nicols
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/Feb/15