Removes unneded login reirects

main
Yasen Pramatarov 2025-04-13 20:05:10 +03:00
parent 101f4c539a
commit 582b5492fe
2 changed files with 0 additions and 11 deletions

View File

@ -14,12 +14,6 @@
* - `password`: Change password * - `password`: Change password
*/ */
// Check if user is logged in
if (!isset($_SESSION['user_id'])) {
header("Location: $app_root?page=login");
exit();
}
$user_id = $_SESSION['user_id']; $user_id = $_SESSION['user_id'];
// Initialize user object // Initialize user object

View File

@ -9,11 +9,6 @@ if (!($userObject->hasRight($user_id, 'superuser') ||
exit; exit;
} }
if (!Session::getUsername()) {
header('Location: ' . htmlspecialchars($app_root) . '?page=login');
exit();
}
// Get current section // Get current section
$section = isset($_POST['section']) ? $_POST['section'] : (isset($_GET['section']) ? $_GET['section'] : 'whitelist'); $section = isset($_POST['section']) ? $_POST['section'] : (isset($_GET['section']) ? $_GET['section'] : 'whitelist');