forked from GithubBackups/vichan
Only mod of board can capcode
This commit is contained in:
parent
f508db9e4c
commit
16693db609
2
post.php
2
post.php
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user