Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Quoted fom 6.x documentation:
This allows you to control which roles see the realname and which don't
Request: Port for 7.x branch.
Comment | File | Size | Author |
---|---|---|---|
#14 | realname-permission-view-2068195-14.patch | 1.84 KB | C-Logemann |
#1 | perm.patch | 3.33 KB | NancyDru |
Comments
Comment #1
NancyDruPlease try this patch.
Comment #2
sry CreditAttribution: sry commentedJust made 1st test on our dev-site, works :-))
Comment #3
NancyDruThanks. I'd like to see one or two more reviews.
Comment #4
Dave ReidPatch and logic could maybe be simplified just by checking if (!user_access('view realname')) { return; } ?
Comment #5
NancyDruI'm not crazy about negative logic, but yes, that might look simpler.
Comment #6
sry CreditAttribution: sry commentedHi,
can test on 2 other sites in the next 2-3 days, 1 environment quite similar to the first, 2nd much different (e. g. users /groups imported via LDAP). Will report ASAP.
I personally would rather keep the code 'as is' because it is working good (and probably will on other sites, too), but of course my preferences are not decisive.
CU,
Sándor
Comment #7
sry CreditAttribution: sry commentedHello,
just tested on 2nd site (with environment similar first test site) - works :-)
CU,
Sándor
Comment #8
sry CreditAttribution: sry commentedHello,
the solution provided by Nancy (via patch) works like a charm! But it seems not to be integrated in the 7.x-1.2 release - why?
TIA,
Sándor
Comment #9
hass CreditAttribution: hass commentedBecause You have not helped getting it ready to be committed.
Comment #10
sry CreditAttribution: sry commentedSorry, I'm not a coder. What kind of help should I have provided? What can I help now, regarding this issue or anywhere else?
CU,
Sándor
Comment #11
sry CreditAttribution: sry commentedhass, I'm still awaiting a hint what I can help. Would a donation be an alternative?
Comment #12
C-Logemann@Dave Reid: Do you want this simplification for getting this committed or is this optional in your opinion? But I read between the lines of comment #9 by @hass that he is waiting on code improvements. So I change the issue status to "needs work".
Comment #14
C-LogemannPatch fixed and simplified as suggested in #4.
Comment #17
C-LogemannComment #20
C-LogemannNext time I will check the right code version first before submitting a patch.
Comment #21
hass CreditAttribution: hass commentedPlease rename the participate function to something self-speaking what it does e.g module_add_default_permissions(). Better documentation would also help. A test should be added, too.
Comment #22
C-Logemann@hass: There aren't any tests yet and you won't accept these tiny patch if there isn't a test implemented?
Comment #23
hass CreditAttribution: hass commentedLet's write one. Should't be that difficult and somedays we need to start writing them to prevent failures.
Comment #24
sry CreditAttribution: sry commentedJust 4 info: Did several functional tests, no probs