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

Guest users no longer prompted to enrol in order to post in a forum

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisites:

      1. A course with guest and self enrolment methods enabled(Follow these instructions)
      2. A user(U1) who is not enrolled in the course.

      Testing Instructions:

      Case 1:

      1. As an admin go to the course.
      2. Create a forum with default arguments.
      3. Create a single discussion.
      4. Login as the U1
      5. Go to the forum within the course
      6. Confirm you can see the add button on the top
      7. Click on the add button
      8. Confirm you are redirected to a page asking you to enrol into the course to post.
      9. Return back to the previous page.
      10. Go into the discussion created in #3
      11. Confirm you can see the reply link in the discussion.
      12. Click on the reply button
      13. Repeat #7

      Repeat Case 1, with the following forum types:

      1. Q and A forum
      2. Each person posts one discussion
      3. Standard forum displayed in a blog-like format

      Case 2: A single simple discussion

      1. As an admin go to the course.
      2. Create a forum of type 'Single simple discussion' with default arguments.
      3. Login as user U1
      4. Go to the forum within the course
      5. Confirm you can see the 'Reply' link.
      6. On click of the link confirm you are redirected to a page asking you to enrol into the course to post.

      Case 3

      1. As an admin, go to the course
      2. In the course's settings page, set 'Number of announcements' to 3 and save
      3. On the course page, click on the 'Announcements' forum and add a discussion.
      4. Login as U1
      5. Confirm you do not see the add button up the top
      6. Click on the discussion created
      7. Confirm you do not see the reply link in the post.

      Case 4

      1. As an admin go to the course.
      2. Create a forum with default arguments.
      3. Create a single discussion.
      4. Logout
      5. As a guest user, navigate to the forum within the course.
      6. Confirm you can see the add button on the top
      7. Click on the add button.
      8. Confirm you are redirected to a page warning you that guests are not allowed to post.
      9. Go back to the forum
      10. Click on the discussion within the forum
      11. Confirm you can see the reply link in the post
      12. Click on the reply link
      13. Confirm you are redirected to a page warning you that guests are not allowed to post.
      Show
      Prerequisites: A course with guest and self enrolment methods enabled(Follow these instructions) A user(U1) who is not enrolled in the course. Testing Instructions: Case 1: As an admin go to the course. Create a forum with default arguments. Create a single discussion. Login as the U1 Go to the forum within the course Confirm you can see the add button on the top Click on the add button Confirm you are redirected to a page asking you to enrol into the course to post. Return back to the previous page. Go into the discussion created in #3 Confirm you can see the reply link in the discussion. Click on the reply button Repeat #7 Repeat Case 1, with the following forum types: Q and A forum Each person posts one discussion Standard forum displayed in a blog-like format Case 2: A single simple discussion As an admin go to the course. Create a forum of type 'Single simple discussion' with default arguments. Login as user U1 Go to the forum within the course Confirm you can see the 'Reply' link. On click of the link confirm you are redirected to a page asking you to enrol into the course to post. Case 3 As an admin, go to the course In the course's settings page, set 'Number of announcements' to 3 and save On the course page, click on the 'Announcements' forum and add a discussion. Login as U1 Confirm you do not see the add button up the top Click on the discussion created Confirm you do not see the reply link in the post. Case 4 As an admin go to the course. Create a forum with default arguments. Create a single discussion. Logout As a guest user , navigate to the forum within the course. Confirm you can see the add button on the top Click on the add button. Confirm you are redirected to a page warning you that guests are not allowed to post. Go back to the forum Click on the discussion within the forum Confirm you can see the reply link in the post Click on the reply link Confirm you are redirected to a page warning you that guests are not allowed to post.
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.7 Branch:
    • Pull Master Branch:
      MDL-65660-master

      Description

      As noticed on moodle.org and reproduced on qa.moodle.net.

      Steps to reproduce:

      1. Create a standard forum in a course with guest access AND self enrolment enabled.
      2. Add a new discussion topic.
      3. Log in as an ordinary user not enrolled in the course and go to the forum.

      Expected behaviour:

      The user sees a 'Add a new discussion topic' button, which if they click on it prompts them to enrol in the course in order to be able to post.

      When viewing an existing discussion, the user sees a reply link, which if they click on it prompts them to enrol in the course in order to be able to post.

      Actual behaviour:

      The user doesn't see a 'Add a new discussion topic' button nor any reply links, so doesn't have any idea that they need to enrol in order to post.

        Attachments

        1. Screenshot 2019-05-22 14.25.42.png
          Screenshot 2019-05-22 14.25.42.png
          579 kB
        2. Screenshot_3.png
          Screenshot_3.png
          78 kB
        3. Screenshot_2.png
          Screenshot_2.png
          106 kB
        4. Screenshot_1.png
          Screenshot_1.png
          129 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 1 hour, 20 minutes
                  1d 1h 20m