1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00

Only mod of board can capcode

This commit is contained in:
8chan Admin 2013-10-27 22:13:09 +00:00
parent 6ad5eededa
commit 71a101fd99

View File

@ -382,7 +382,7 @@ if (isset($_POST['delete'])) {
$post['capcode'] = false;
if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches)) {
if ($mod && preg_match('/^((.+) )?## (.+)$/', $post['name'], $matches) && (in_array($board['uri'], $mod['boards']) or $mod['boards'][0] == '*')) {
$name = $matches[2] != '' ? $matches[2] : $config['anonymous'];
$cap = $matches[3];