summaryrefslogtreecommitdiff
path: root/pages/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/edit.php')
-rw-r--r--pages/edit.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/edit.php b/pages/edit.php
index ae007be..8e6de91 100644
--- a/pages/edit.php
+++ b/pages/edit.php
@@ -13,8 +13,7 @@ function getSubsystemByID(string $id) {
return $subsystem;
}
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn;
-if (!$isLoggedIn) header("Location: /-/login") and die();
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.php"; global $title; global $isLoggedIn;
if (!isset($_GET['_']) || trim($_GET['_']) === "") header("Location: /?error=Invalid request") and die();