mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-26 06:58:26 +01:00
Merge pull request #511 from ctrlcctrlv/revert-510-master
Revert "Allow global volunteers to PM users."
This commit is contained in:
commit
55e0ec5c4c
@ -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.
|
||||
if (!hasPermission($config['mod']['clean_global']) {
|
||||
// Lock users into only being able to message users assigned to their board.
|
||||
if (!hasPermission($config['mod']['pm_all'])) {
|
||||
if ($mod['boards'][0] != $row['boards'] && !($row['boards'] === '*')) {
|
||||
error(_('You may only PM users assigned to your board'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user