mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
565f3f25f0
Adds 'email' to hiddenuserfields, which allows: * user to view email on their own profile, * users with cap site:viewuseridentity to view email on any profile (admins/teachers) * admin to veto display of email to users without site:viewuseridentity (except viewing their own) * unprivileged users to view if the profile's maildisplay permits it. Changes in user/lib.php include removal of is_siteadmin() test, which is redundant due to checks via has_capability(). Fixes regression from 2.9 (MDL-45774).