Revert "Allow global volunteers to PM users."

This commit is contained in:
Fredrick Brennan 2015-06-12 16:37:13 +08:00
parent 4b83e38334
commit 1032cd12a5

View File

@ -2317,8 +2317,8 @@ function mod_new_pm($username) {
} }
} }
// Lock users into only being able to message users assigned to their board; Exclude global volunteers. // Lock users into only being able to message users assigned to their board.
if (!hasPermission($config['mod']['clean_global']) { if (!hasPermission($config['mod']['pm_all'])) {
if ($mod['boards'][0] != $row['boards'] && !($row['boards'] === '*')) { if ($mod['boards'][0] != $row['boards'] && !($row['boards'] === '*')) {
error(_('You may only PM users assigned to your board')); error(_('You may only PM users assigned to your board'));
} }