Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4440 closed enhancement (fixed)

Profile field visibility only to admins

Reported by: mahdiar's profile mahdiar Owned by: boonebgorges's profile boonebgorges
Milestone: 1.7 Priority: normal
Severity: normal Version: 1.6
Component: Extended Profile Keywords: needs-testing has-patch


A setting should be add to change Profile field visibility only to admins .
I mean only admins can see some of the profile fields .

Attachments (1)

4440.001.patch (3.5 KB) - added by DJPaul 12 years ago.

Download all attachments as: .zip

Change History (11)

#1 @boonebgorges
12 years ago

  • Keywords 2nd-opinion added
  • Milestone changed from Awaiting Review to 1.7
  • Owner set to boonebgorges
  • Status changed from new to assigned

I've gotten a lot of requests for this, so I'm going to move it to 1.7 for further discussion. It's easy enough to add; I want to gauge if others think it would be useful.

#2 @mahdiar
12 years ago

I think it is necessary to collect some important personal information . For example I'd like to collect my users' cell phone number . Maybe they don't like others to know their number .

#3 @Steve Holland
12 years ago

+1 good idea.

#5 @dcavins
12 years ago

I agree that this is a good idea. And one I just bothered Boone about via e-mail, when I should have looked here first.

#6 @DJPaul
12 years ago

  • Keywords needs-testing has-patch added; 2nd-opinion removed

12 years ago

#7 @DJPaul
12 years ago

Attached a patch for review; it adds add a "admins only" visibility setting which uses a bp_current_user_can( 'bp_moderate' ) check.

#8 @boonebgorges
12 years ago

This looks good to me (aside from the if/else comment positions, which I find loathsome ;)

#9 @djpaul
12 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6352]) Add an "admins only" visibility option to profile fields. Fixes #4440

#10 @anointed
12 years ago

I want to gauge if others think it would be useful.


When using multisite, is each user who creates their own blog an admin, thus giving them permission to view the 'admins only' fields?

Also if using the multi-network plugin would that mean that each admin from all the networks have permission to view the 'admins only' fields?

Maybe the intent would be just as well served using is_super_admin()?

Note: See TracTickets for help on using tickets.