[buddypress-trac] [BuddyPress Trac] #5365: WP Admin BuddyPress profile & self profile

buddypress-trac noreply at wordpress.org
Fri Jan 31 21:25:01 UTC 2014


#5365: WP Admin BuddyPress profile & self profile
----------------------------+-----------------------------------
 Reporter:  imath           |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  2.0
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  has-patch 2nd-opinion
----------------------------+-----------------------------------
 Hi,

 I've noticed one of the things i was checking in my first versions of the
 patch is not there anymore. I was checking if the current user id was the
 same than the one of the user being edited in order to return without
 modifying the row actions. Meaning an administrator can only edit other
 users profile from this area.

 I think we should stay with this logic. I've run some tests earlier today
 and if we were to allow an administrator to edit his BuddyPress
 (Community) profile from this new Administration screen, then we would
 also need to :
 - change the WordPress profile link from user-edit.php to profile.php if
 administrator is editing his profile,
 - as a result we would need to hook 'show_user_profile' in order to add
 our profile tabs,
 - then we would need to also include the custom css in the profile.php
 page,
 - then we should disable the ban/unban radio box to avoid the
 administrator to ban himself..

 At the end, the Profile nav would also load for regular users, so we would
 need to check for the requested user_id to avoid loading the custom css
 and include some other checks on user's capacity to avoid inserting the
 profile tabs for regular users..

 I think our main goal is to give the ability to an administrator to
 "moderate" his members profiles, not to edit his personal profile.

 Finally the patch also makes sure we're on the bp-profile edit page before
 loading the javascript needed to this screen.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5365>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list