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

Inconsistencies when accessing profiles as guest

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Make sure that forceloginforprofiles and autologinguests are both on.

      You will need two users. One user who just needs to exist (and thus have a profile) and another who you will actually use to test.

      Check that your user has the ability to view the other person's profile.
      ----------------------------------------------------------
      Log out.

      You are going to test two URLs. N == the ID of the user whose profile you are going to access. X == a course ID.

      user/view.php?id=N&course=X

      user/profile.php?id=N

      Access a URL. You should get a message saying that you cannot access profiles as guest.

      Click continue and log in. You should be sent back to the URL and now be viewing a user profile.

      Log out and repeat with the second URL. It should behave the same.

      Show
      Make sure that forceloginforprofiles and autologinguests are both on. You will need two users. One user who just needs to exist (and thus have a profile) and another who you will actually use to test. Check that your user has the ability to view the other person's profile. ---------------------------------------------------------- Log out. You are going to test two URLs. N == the ID of the user whose profile you are going to access. X == a course ID. user/view.php?id=N&course=X user/profile.php?id=N Access a URL. You should get a message saying that you cannot access profiles as guest. Click continue and log in. You should be sent back to the URL and now be viewing a user profile. Log out and repeat with the second URL. It should behave the same.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull Master Branch:
      MDL-48441_profile_guest

      Description

      /user/profile.php and /user/view.php handle a guest user accessing profiles differently when forceloginforprofiles is turned on.

      One was improved in MDL-47238 but for some reason the other was neglected.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15