mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-14 10:57:38 +01:00
fix minor exploit with banning
This commit is contained in:
parent
c95877bdcb
commit
428a686f47
@ -1549,7 +1549,7 @@ function mod_ban_post(Context $ctx, $board, $delete, $post, $token = false) {
|
|||||||
if (!openBoard($board))
|
if (!openBoard($board))
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
|
|
||||||
if (!hasPermission($config['mod']['delete'], $board))
|
if (!hasPermission($config['mod']['ban'], $board))
|
||||||
error($config['error']['noaccess']);
|
error($config['error']['noaccess']);
|
||||||
|
|
||||||
$security_token = make_secure_link_token($board . '/ban/' . $post);
|
$security_token = make_secure_link_token($board . '/ban/' . $post);
|
||||||
|
Loading…
Reference in New Issue
Block a user