Only mod of board can capcode

This commit is contained in:
8chan Admin 2013-10-27 22:13:09 +00:00
parent f508db9e4c
commit 16693db609

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];