[buddypress-trac] [BuddyPress] #5207: Viewing a spammed user's page if not a moderator adds a trailing 'members' slug to URL

buddypress-trac noreply at wordpress.org
Sat Oct 19 21:17:10 UTC 2013


#5207: Viewing a spammed user's page if not a moderator adds a trailing 'members'
slug to URL
--------------------------+-----------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  1.9
Component:  Members       |    Version:  1.6
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 Just encountered this bug.

 Steps to duplicate:

 1. Make sure you have marked a user as a spammer.  Next, either log out or
 login as a non-admin.
 2. Try to view the spammed user's profile.
 3. The URL will show - domain.com/members/SPAMMER/**members**/

 I've attached a quick patch that fixes this by unsetting the component in
 the canonical stack if the displayed user is a spammer and if the current
 user does not have the `'bp_moderate'` cap.

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


More information about the buddypress-trac mailing list