Opened 13 years ago
Closed 13 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9 |
| Component: | Members | Version: | 1.6 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Yup, this looks like the right place to fix the issue.