diff --git a/CSY2028/EntryPoint.php b/CSY2028/EntryPoint.php index e9e5594..1a7a754 100644 --- a/CSY2028/EntryPoint.php +++ b/CSY2028/EntryPoint.php @@ -36,7 +36,7 @@ class EntryPoint { if ($_SERVER['REQUEST_METHOD'] == 'POST') { $functionName = $functionName . 'Submit'; } - + $this->routes->checkLogin($route); $page = $this->routes->getController($controllerName, $functionName); if ($page == null) { $page = $this->routes->notFound(); diff --git a/jobs/Routes.php b/jobs/Routes.php index 7a2b7b2..3c0fa9e 100644 --- a/jobs/Routes.php +++ b/jobs/Routes.php @@ -36,7 +36,6 @@ class Routes implements \CSY2028\Routes { $loginRoutes = []; //TODO: Add login routes //$loginRoutes['user'] = true; - $loginRoutes['/admin/'] = true; $requiresLogin = $loginRoutes[$route] ?? false; if ($requiresLogin && !isset($_SESSION['loggedin'])) {