Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2006 at 17:34 UTC
Updated:
12 Jul 2006 at 23:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
dries commentedI find it useful to test how it works, to setup my inbox filters, etc. That said, if the majority of the people think it's confusing, I'd be happy to commit this patch.
Comment #2
m3avrck commentedAgreed, I can see uses for us "techies" but out of a group of 3 other people (very well educated, very smart), they found the contact tab on their personal profile tab confusing and not needed at all.
Maybe this should rather be another permission, "contact self" so it can be turned off for certain roles?
Comment #3
dries commentedI'd vote against another permission. I think we just have to make a decision.
Comment #4
pwolanin commentedI think this patch is a good idea, though maybe should include an addition to the contact.module help text (such as attached patch)?
Surely any site admin can create a dummy account if they want to log in and contact themselves for test purposes.
Comment #5
m3avrck commentedGood idea pwolanin about the help text. And Dries, I agree, another permission is really not needed but just wanted to throw that out there :-)
Updated patch, ready to go.
Comment #6
webchickA of couple minor nits on the help text:
1. You should avoid having to escape stuff whenever possible, so that string should actually go in double quotes
2. You actually will only see it in another user's profile, if they have the contact feature enabled
I'm thinking though, why don't we instead always show it for uid 1 (satisfies the debugging use case, which is valid imo, and they're used to seeing everything anyway) and not for anyone else (satisfies the "why can I contact myself?" case for non-technical users)?
Here's a patch which takes that approach.
Comment #7
webchickOops. Forgot to fix the help text.
As a side note, somewhere along the way the help text for the contact module became totally inconsistent with the rest of the core modules' help files... sigh. :( I'll roll a separate patch for that, though.
Comment #8
m3avrck commentedI'm cool with that :-)
Comment #9
dries commentedI'd get rid of the ($user->uid == 1) check.
Comment #10
webchickFair enough. :)
This patch includes the fixed help text, and Ted's original approach.
Comment #11
adixon commentedThanks, i love useability (for other people mostly). But couldn't we just change your patch from
to
In other words, 'administer users' allows you to send emails to everyone else, so you might as well allow you to send to yourself.
Comment #12
webchickI was just thinking that this morning, actually... since someone with administer user privileges can already see contact tabs when they shouldn't (like on users who have that option disabled), and since you'd be less likely to give those privileges away to users who would be confused by the presence of the tab, I think this also makes sense.
Exact same patch, just switched around the logic per adixon's comments. Either this one or #10 should be good to go, depending on what approach is preferred.
Comment #13
m3avrck commentedI'm cool with either one since they both prevent normal users from being able to contact themself :-)
Comment #14
dries commentedGreat. webchick's patch gives us the best of both worlds. Committed to CVS HEAD.
Comment #15
pwolanin commentedWill this be backported to 4.7 too? Could certainly be considered a UI bug.
Comment #16
m3avrck commented*/me pokes killes*
usability fix for 4.7 ;-)
Comment #17
(not verified) commented