Fix a bug in post-edit

This commit is contained in:
Jacob 2024-04-04 10:07:21 +02:00
parent 9f5103ac91
commit fd339a74dd

View file

@ -30,10 +30,7 @@ $Database = createTables($sqlDB);
$DatabaseQuery = $Database->query('SELECT * FROM users');
if (!isset($_SESSION['username']) || !isset($_SESSION['password']) || !isset($_SESSION['type'])) {
header('Location: login.php?redir=admin');
die();
} else if (htmlspecialchars($_SESSION['type']) != 2) { // not allowed
header('Location: /');
header('Location: login.php');
die();
}