post.php, mod.php: pass the context to check_login

This commit is contained in:
Zankaria
2024-10-01 22:15:03 +02:00
parent e6133ef00f
commit f4ff39c876
2 changed files with 5 additions and 4 deletions

View File

@@ -694,7 +694,7 @@ if (isset($_POST['delete'])) {
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
check_login(false);
check_login($context, false);
if (!$mod) {
// Liar. You're not a mod.
error($config['error']['notamod']);