On line 86, there's a comment:

// check if the current user has view all pm's or is the same user as the author

However, the code only checks the author of the draft, and not if the user actually has the permission referenced in the comment.

Comments

chrisfree’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.