Opened 11 years ago
Closed 11 years ago
#5254 closed defect (bug) (fixed)
Message thread still accessible after member has deleted it
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | 1.8.1 |
Component: | Messages | Keywords: | has-patch 2nd-opinion commit |
Cc: |
Description
Steps to reproduce
- Delete a message thread but take note of the thread's URL. e.g
/members/username/messages/view/165/
- After the thread has been successfully deleted, visit the URL.
You will see that even though the deleted message thread doesn't appear in a member's inbox or sentbox, the thread can still be read by the member who deleted it if they access it by directly typing in the URL.
Attachments (1)
Change History (6)
#2
in reply to:
↑ 1
@
11 years ago
- Keywords has-patch 2nd-opinion added
Replying to DJPaul:
We should double-check this for 1.9 and see if it's been a regression from previous versions or not.
Hi Paul, just checked it, and it's happening the same way in 1.8.1.
I suggest to temporary patch this by checking if the current user has deleted the thread adding a check to the is_deleted field in BP_Messages_Thread::check_access() so that a regular user doing what explains @henrywright will be redirected to his inbox instead of viewing a message he deleted (see the 5254.diff attached to this ticket). This means, a user that can 'bp_moderate' will still view the message even if he deleted it, but he's not a regular user ;)
If i understand well : a thread is deleted only if sender and recipients all deleted it. 1.9 might be too close to review the process of the message component.
We should double-check this for 1.9 and see if it's been a regression from previous versions or not.