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

subscribe_user_to_discussion should check for guests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course and enrol a user in it
      2. Enable guest access to the course
      3. Create a forum in that course.
      4. Create a new discussion in the forum
      5. Login as the user
      6. Attempt to subscribe to the discussion using the JS links in the thread index
      7. Unsubscribe again
      8. Login as another user not enrolled in the course
      9. View the forum
        • Confirm that the subscribe/unsubscribe link is no longer present
      10. View the discussion
        • Confirm that the subscribe/unsubscribe link is no longer present
      11. Open mod/forum/discuss.php and comment out the is_guest() check before forum_get_discussion_subscription_icon
      12. View the discussion again
      13. Click on the discussion subscribe link
        • Confirm the exception was thrown
      Show
      Create a course and enrol a user in it Enable guest access to the course Create a forum in that course. Create a new discussion in the forum Login as the user Attempt to subscribe to the discussion using the JS links in the thread index Unsubscribe again Login as another user not enrolled in the course View the forum Confirm that the subscribe/unsubscribe link is no longer present View the discussion Confirm that the subscribe/unsubscribe link is no longer present Open mod/forum/discuss.php and comment out the is_guest() check before forum_get_discussion_subscription_icon View the discussion again Click on the discussion subscribe link Confirm the exception was thrown
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48029-master

      Description

      subscribe_user_to_discussion should check for guests
      Petr raised n MDL-48020

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14