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

Inconsistencies when accessing profiles as guest

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-48441_profile_guest
    • 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.

      /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.

            andyjdavis Andrew Davis
            andyjdavis Andrew Davis
            Mark Nelson Mark Nelson
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.