Closed (duplicate)
Project:
Privatemsg
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 May 2013 at 14:45 UTC
Updated:
4 Jun 2013 at 15:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
ptmkenny commentedComment #2
berdirThat code is specific to users, that doesn't work, a recipient could also be a role.
What we need to check and what I thought we already did is simply if there are any valid recipients that we can write to.
If you look at privatemsg_form_reply(), you can see that it already does that and it even has logic to display the reasons why those users are blocked. So if the form is still displayed, you need to check why the check there isn't working.
Comment #3
ptmkenny commentedOk, thanks for the comment. I missed the function call that performed validation.
I tried implementing this a different way by adding the following lines to _privatemsg_get_allowed_recipients() to make sure that the user account isn't blocked:
However, the reply form is still shown because of this code:
If I delete the line $usercount++, the reply form is hidden correctly. Why is the user added as the only recipient?
Comment #4
ptmkenny commentedClosed as duplicate as per this comment: https://drupal.org/node/834706#comment-7493932