2017-11-20, 06:54 PM
Current code in functions_post.php.
Grabs the $usergroup['canusepm'] in order to show the PM button. However that is previously set by display group.
I consider this a bug because the ability to see the PM button in postbit should depend on if the user has "canusepms" on any of a members groups and not the display group.
Quote: if($mybb->settings['enablepms'] == 1 && (($post['receivepms'] != 0 && $usergroup['canusepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false) || $mybb->usergroup['canoverridepm'] == 1))
Grabs the $usergroup['canusepm'] in order to show the PM button. However that is previously set by display group.
// Get the usergroup
if($post['userusername'])
{
if(!$post['displaygroup'])
{
$post['displaygroup'] = $post['usergroup'];
}
$usergroup = $groupscache[$post['displaygroup']];
}
else
{
$usergroup = $groupscache[1];
}
I consider this a bug because the ability to see the PM button in postbit should depend on if the user has "canusepms" on any of a members groups and not the display group.