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

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

    XMLWordPrintable

Details

    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-60548-master-v4
    • 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.

    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

              balchd Dave Balch
              balchd Dave Balch
              Adrian Greeve Adrian Greeve
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18