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

Unsubscribe from all forums responding correctly to guests

    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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

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