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

This commit is contained in:
Zankaria committed 2024-10-01 22:16:54 +02:00
1 parent e6133ef00f
commit f4ff39c876
2 files changed
+5 -4

No files matched your search

+1 -1
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']);