Opened 11 years ago
Closed 11 years ago
#5207 closed defect (bug) (fixed)
Viewing a spammed user's page if not a moderator adds a trailing 'members' slug to URL
Reported by: | r-a-y | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | normal | Version: | 1.6 |
Component: | Members | Keywords: | has-patch |
Cc: |
Description
Just encountered this bug.
Steps to duplicate:
- Make sure you have marked a user as a spammer. Next, either log out or login as a non-admin.
- Try to view the spammed user's profile.
- 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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Yup, this looks like the right place to fix the issue.