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

Cannot see email addresses, even when user's maildisplay setting allows it

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Covered by behat

      Either run Behat with the named test "Set email display preference", or

      1. Create a course with two students.
      2. Set the "Email display" for student 1 to "Allow only other course members to see my email address".
      3. Set the "Email display" for student 2 to "Hide my email address from everyone".
      4. Log in as student 1 and view the profile page for student 2 - it should not have a visible email address.
      5. Log in as student 2 and view the profile page for student 1 - the email address should be visible.
      Show
      Covered by behat Either run Behat with the named test "Set email display preference", or Create a course with two students. Set the "Email display" for student 1 to "Allow only other course members to see my email address". Set the "Email display" for student 2 to "Hide my email address from everyone". Log in as student 1 and view the profile page for student 2 - it should not have a visible email address. Log in as student 2 and view the profile page for student 1 - the email address should be visible.
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60548-master-v4

      Description

      When a user without the "viewuseridentity" capability (e.g. student) views another users profile, they cannot see its email address - even if the "maildisplay" setting for that profile should allow it ("allow everyone" or "allow other course members").

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18