Hi,
we are running Drupal as an Intranet portal and I would like to make the email address field of our users public, so that everyone is able to see it on the user's page.
How do I do that?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | user.module.patch | 1.64 KB | gurubert |
| #3 | user.module.patch | 1.56 KB | gurubert |
Comments
Comment #1
gurubert commentedHi,
implementing hook_user() and adding a new field to the user's view solved this issue:
Comment #2
gurubert commentedHi,
it would be good to have a separate "view email" permission besides the "administer users" permission.
Comment #3
gurubert commentedHi,
attached is a patch against user.module that introduces the new permission "access mail" and enables viewing of the email address on the user page.
Comment #4
Anonymous (not verified) commentedFeature request go to the next version. Please roll the patch against HEAD.
Comment #5
gurubert commentedHi,
attached is the (minimal different) patch against 7.x-dev
I would like to see the new permission to solve issue #315817: Introducing a new permission 'access mail' as Views handles the mail field special.
Comment #6
keith.smith commentedThere are some minor code style issues with this patch. In particular, concatenation operations should be set off with spaces.
Comment #7
Anonymous (not verified) commentedAnd be sure to convert tabs to spaces.
Comment #8
robloachI'd rather use
t("Access users' E-mail addresses.")here.Comment #9
dawehnerThat's already to late for 7.x, i guess.
Comment #10
lajthabalazs commentedWould this work? I need the functionality, but I'm not an expert Drupal user nor developer.
Comment #11
andypostLooks like a task for contrib module, email should be optional
Comment #14
dpiI believe this is what is required.
Comment #15
andypostfor features right now
Comment #16
andypostComment #17
dpiAdding related issue: #2227381: Apply formatters and widgets to User base fields 'name' and 'email'
Also related Drupal stack exchange question:
How do I allow regular non-admin users to view other users' emails?
Comment #31
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!