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

Unsubscribe from all forums responding correctly to guests

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      Ensure your site has guest access and autologin guest enabled in your site settings.

      Make sure you are completely logged out
      Go to /mod/forum/unsubscribeall.php. You should be redirected to the login page.

      Login as guest.
      Go to localhost/moodle/dev/master/mod/forum/unsubscribeall.php
      You should be redirected to your site home page.

      Login in as a proper user.
      Go to localhost/moodle/dev/master/mod/forum/unsubscribeall.php
      The unsubscribe from all forums confirmation screen should be displayed with no warnings or errors.

      Show
      Ensure your site has guest access and autologin guest enabled in your site settings. Make sure you are completely logged out Go to /mod/forum/unsubscribeall.php. You should be redirected to the login page. Login as guest. Go to localhost/moodle/dev/master/mod/forum/unsubscribeall.php You should be redirected to your site home page. Login in as a proper user. Go to localhost/moodle/dev/master/mod/forum/unsubscribeall.php The unsubscribe from all forums confirmation screen should be displayed with no warnings or errors.
    • Workaround:
      Hide

      in /mod/forum/unsubscribeall.php
      replace:

      require_login();

      by

      require_login(NULL, false);

      Show
      in /mod/forum/unsubscribeall.php replace: require_login(); by require_login(NULL, false);
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-30722_forum_unsubscribe

      Description

      When to try to unsubscribe from all forums and you are not logged in then you should be redirected to login page, but guests are not.

      Reproduction steps:

      1. Log out
      2. Log in as a guest
      3. try to unsubscribe from all forums (http://localhost/mod/forum/unsubscribeall.php)

      you are not redirected to login page.

        Attachments

          Activity

            People

            Assignee:
            andyjdavis Andrew Davis
            Reporter:
            rodries rodrigo
            Peer reviewer:
            Adrian Greeve Adrian Greeve
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Jason Fowler Jason Fowler
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Mar/12